Blame SOURCES/libhugetlbfs-2.16-s390.patch

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