[CRIU] [PATCH 2/2] criu/makefile: fix build (DEFINES array to CFLAGS)
Dmitry Safonov
dsafonov at virtuozzo.com
Mon Feb 15 07:36:54 PST 2016
I have CONFIG_HAS_LIBBSD, but -DCONFIG_HAS_LIBBSD isn't passed to
compiler. Fix for the following error:
<...>
CC cr-dedup.o
CC cr-dump.o
cr-dump.c: In function ‘dump_filemap’:
cr-dump.c:382:3: error: implicit declaration of function ‘strlcpy’ [-Werror=implicit-function-declaration]
strlcpy(aufs_link.name, vma_area->aufs_rpath,
^
cc1: all warnings being treated as errors
/home/japdoll/tools/criu/scripts/nmk/scripts/rules.mk:53: recipe for target 'cr-dump.o' failed
make[2]: *** [cr-dump.o] Error 1
Makefile:146: recipe for target 'built-in.o' failed
make[1]: *** [built-in.o] Error 2
Makefile:109: recipe for target 'criu' failed
make: *** [criu] Error 2
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/Makefile.crtools | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/Makefile.crtools b/criu/Makefile.crtools
index 5c3f65c..fdb9116 100644
--- a/criu/Makefile.crtools
+++ b/criu/Makefile.crtools
@@ -1,4 +1,5 @@
ccflags-y += -iquote $(ARCH)
+ccflags-y += $(DEFINES)
obj-y += action-scripts.o
obj-y += aio.o
obj-y += bfd.o
--
2.7.1
More information about the CRIU
mailing list