Blame SOURCES/libhugetlbfs-2.16-s390.patch

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