Commit e44320ec authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: handle-elf-32 needed for x86 only

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 11282c60
...@@ -12,20 +12,27 @@ ccflags-y += -fPIC ...@@ -12,20 +12,27 @@ ccflags-y += -fPIC
lib-y += arch/$(ARCH)/src/lib/handle-elf.o lib-y += arch/$(ARCH)/src/lib/handle-elf.o
lib-y += src/lib/handle-elf.o lib-y += src/lib/handle-elf.o
ifeq ($(ARCH),x86)
lib-y += src/lib/handle-elf-32.o lib-y += src/lib/handle-elf-32.o
endif
obj-y += src/main.o obj-y += src/main.o
ifeq ($(ARCH),x86)
CFLAGS_handle-elf-32.o += -UCONFIG_X86_64 -DCONFIG_X86_32 CFLAGS_handle-elf-32.o += -UCONFIG_X86_64 -DCONFIG_X86_32
CFLAGS_handle-elf-32.d += -UCONFIG_X86_64 -DCONFIG_X86_32 CFLAGS_handle-elf-32.d += -UCONFIG_X86_64 -DCONFIG_X86_32
endif
host-ccflags-y += $(ccflags-y) host-ccflags-y += $(ccflags-y)
hostprogs-y += compel-host hostprogs-y += compel-host
compel-host-objs := $(patsubst %.o,%-host.o,$(obj-y) $(lib-y)) 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.o += -UCONFIG_X86_64 -DCONFIG_X86_32
HOSTCFLAGS_handle-elf-32-host.d += -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
cleanup-y += compel/compel-host cleanup-y += compel/compel-host
......
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