Blame SOURCES/libhugetlbfs-2.16-s390.patch

f1281f
diff -up libhugetlbfs-2.16/Makefile.s390 libhugetlbfs-2.16/Makefile
f1281f
--- libhugetlbfs-2.16/Makefile.s390	2013-05-12 08:49:28.160883455 +0200
f1281f
+++ libhugetlbfs-2.16/Makefile	2013-05-12 08:49:39.586906994 +0200
f1281f
@@ -84,17 +84,26 @@ CFLAGS += -DNO_ELFLINK
f1281f
 else
f1281f
 ifeq ($(ARCH),s390x)
f1281f
 CC64 = gcc -m64
f1281f
-CC32 = gcc -m31
f1281f
-ELF32 = elf_s390
f1281f
 ELF64 = elf64_s390
f1281f
 TMPLIB64 = lib64
f1281f
 TMPLIB32 = lib
f1281f
 CUSTOM_LDSCRIPTS = no
f1281f
+ifneq ($(BUILDTYPE),NATIVEONLY)
f1281f
+CC32 = gcc -m31
f1281f
+ELF32 = elf_s390
f1281f
+endif
f1281f
+else
f1281f
+ifeq ($(ARCH),s390)
f1281f
+CC32 = gcc -m31
f1281f
+ELF32 = elf_s390
f1281f
+TMPLIB32 = lib
f1281f
+CUSTOM_LDSCRIPTS = no
f1281f
 else
f1281f
 $(error "Unrecognized architecture ($(ARCH))")
f1281f
 endif
f1281f
 endif
f1281f
 endif
f1281f
+endif
f1281f
 endif
f1281f
 endif
f1281f
 endif