Commit eb66a97f authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

criu/makefile: fix build (DEFINES array to CFLAGS)

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: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 69fbdfaf
ccflags-y += -iquote $(ARCH) ccflags-y += -iquote $(ARCH)
ccflags-y += $(DEFINES)
obj-y += action-scripts.o obj-y += action-scripts.o
obj-y += aio.o obj-y += aio.o
obj-y += bfd.o obj-y += bfd.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment