[CRIU] [PATCH 1/2] compel: Split host and lib files
Cyrill Gorcunov
gorcunov at openvz.org
Fri Sep 23 06:14:40 PDT 2016
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
compel/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/compel/Makefile b/compel/Makefile
index 123e786ca380..bfb79237dbb2 100644
--- a/compel/Makefile
+++ b/compel/Makefile
@@ -11,10 +11,13 @@ ccflags-y += -iquote $(SRC_DIR)/criu/include
ccflags-y += -fPIC
lib-y += arch/$(ARCH)/src/lib/handle-elf.o
+host-lib-y += arch/$(ARCH)/src/lib/handle-elf.o
lib-y += src/lib/handle-elf.o
+host-lib-y += src/lib/handle-elf.o
ifeq ($(ARCH),x86)
lib-y += src/lib/handle-elf-32.o
+host-lib-y += src/lib/handle-elf-32.o
endif
obj-y += src/main.o
@@ -27,7 +30,7 @@ endif
host-ccflags-y += $(ccflags-y)
hostprogs-y += compel-host
-compel-host-objs := $(patsubst %.o,%-host.o,$(obj-y) $(lib-y))
+compel-host-objs := $(patsubst %.o,%-host.o,$(obj-y) $(host-lib-y))
ifeq ($(ARCH),x86)
HOSTCFLAGS_handle-elf-32-host.o += -UCONFIG_X86_64 -DCONFIG_X86_32
--
2.7.4
More information about the CRIU
mailing list