Distributions usually build their packages natively in pure 32-bit or 64-bit environments.
patch by Anton Arapov (Red Hat) --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 48205af..afb1495 100644 --- a/Makefile +++ b/Makefile @@ -84,12 +84,20 @@ CFLAGS += -DNO_ELFLINK else ifeq ($(ARCH),s390x) CC64 = gcc -m64 -CC32 = gcc -m31 -ELF32 = elf_s390 ELF64 = elf64_s390 TMPLIB64 = lib64 TMPLIB32 = lib CUSTOM_LDSCRIPTS = no +ifneq ($(BUILDTYPE),NATIVEONLY) +CC32 = gcc -m31 +ELF32 = elf_s390 +endif +else +ifeq ($(ARCH),s390) +CC32 = gcc -m31 +ELF32 = elf_s390 +TMPLIB32 = lib +CUSTOM_LDSCRIPTS = no else $(error "Unrecognized architecture ($(ARCH))") endif @@ -100,6 +108,7 @@ endif endif endif endif +endif ifdef CC32 OBJDIRS += obj32 -- 1.8.1.4 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel