Distributions usually build their packages natively in pure 32-bit or 64-bit 
environments.

original patch by Anton Arapov (Red Hat)

Signed-off-by: Dan Horák <d...@danny.cz>
---
 Makefile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 91502e1..71182c3 100644
--- a/Makefile
+++ b/Makefile
@@ -98,12 +98,20 @@ CFLAGS += -DNO_ELFLINK
 else
 ifeq ($(ARCH),s390x)
 CC64 = $(CC) -m64
-CC32 = $(CC) -m31
-ELF32 = elf_s390
 ELF64 = elf64_s390
 TMPLIB64 = lib64
 TMPLIB32 = lib
 CUSTOM_LDSCRIPTS = no
+ifneq ($(BUILDTYPE),NATIVEONLY)
+CC32 = $(CC) -m31
+ELF32 = elf_s390
+endif
+else
+ifeq ($(ARCH),s390)
+CC32 = $(CC) -m31
+ELF32 = elf_s390
+TMPLIB32 = lib
+CUSTOM_LDSCRIPTS = no
 else
 $(error "Unrecognized architecture ($(ARCH))")
 endif
@@ -116,6 +124,7 @@ endif
 endif
 endif
 endif
+endif
 
 ifdef CC32
 OBJDIRS += obj32
-- 
1.9.3


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to