[CRIU] [PATCH 5/5] compel: Drop off handle-elf routines from library

Cyrill Gorcunov gorcunov at openvz.org
Tue Nov 15 01:43:00 PST 2016


piegen mode is cli only, so no need for them in library.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/Makefile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/compel/Makefile b/compel/Makefile
index ad98e9d6d75f..27ef59c52bc5 100644
--- a/compel/Makefile
+++ b/compel/Makefile
@@ -15,10 +15,6 @@ ccflags-y		+= -I compel/include/uapi
 ccflags-y		+= -I compel/plugins/include/uapi
 
 lib-name		:= libcompel.a
-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
 lib-y			+= src/lib/log.o
 host-lib-y		+= src/lib/log.o
 
@@ -30,11 +26,12 @@ lib-y			+= src/lib/infect.o
 lib-y			+= src/lib/ptrace.o
 
 ifeq ($(ARCH),x86)
-lib-y			+= src/lib/handle-elf-32.o
-host-lib-y		+= src/lib/handle-elf-32.o
+obj-y			+= src/lib/handle-elf-32.o
 endif
 
 obj-y			+= src/main.o
+obj-y			+= arch/$(ARCH)/src/lib/handle-elf.o
+obj-y			+= src/lib/handle-elf.o
 
 ifeq ($(ARCH),x86)
 CFLAGS_handle-elf-32.o += -UCONFIG_X86_64 -DCONFIG_X86_32
-- 
2.7.4



More information about the CRIU mailing list