From 64bb75a859cd64df4ebc205059858823a9bf08ec Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 15 Nov 2016 12:43:00 +0300 Subject: [PATCH] compel: Drop off handle-elf routines from library piegen mode is cli only, so no need for them in library. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- compel/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/compel/Makefile b/compel/Makefile index ad98e9d6d..27ef59c52 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