[CRIU] [PATCH 19/19] compel: handle-elf-32 needed for x86 only

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 21 13:54:34 PDT 2016


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

diff --git a/compel/Makefile b/compel/Makefile
index 001ed385e6f0..123e786ca380 100644
--- a/compel/Makefile
+++ b/compel/Makefile
@@ -12,20 +12,27 @@ ccflags-y		+= -fPIC
 
 lib-y			+= arch/$(ARCH)/src/lib/handle-elf.o
 lib-y			+= src/lib/handle-elf.o
+
+ifeq ($(ARCH),x86)
 lib-y			+= src/lib/handle-elf-32.o
+endif
 
 obj-y			+= src/main.o
 
+ifeq ($(ARCH),x86)
 CFLAGS_handle-elf-32.o += -UCONFIG_X86_64 -DCONFIG_X86_32
 CFLAGS_handle-elf-32.d += -UCONFIG_X86_64 -DCONFIG_X86_32
+endif
 
 host-ccflags-y		+= $(ccflags-y)
 
 hostprogs-y		+= compel-host
 compel-host-objs	:= $(patsubst %.o,%-host.o,$(obj-y) $(lib-y))
 
+ifeq ($(ARCH),x86)
 HOSTCFLAGS_handle-elf-32-host.o += -UCONFIG_X86_64 -DCONFIG_X86_32
 HOSTCFLAGS_handle-elf-32-host.d += -UCONFIG_X86_64 -DCONFIG_X86_32
+endif
 
 cleanup-y		+= compel/compel
 cleanup-y		+= compel/compel-host
-- 
2.7.4



More information about the CRIU mailing list