libhugetlbfs/libhugetlbfs.s390.patch

44 lines
848 B
Diff
Raw Normal View History

---
Makefile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Index: libhugetlbfs-2.15/Makefile
===================================================================
--- libhugetlbfs-2.15.orig/Makefile
+++ libhugetlbfs-2.15/Makefile
@@ -69,19 +69,22 @@ else
ifeq ($(ARCH),ia64)
CC64 = gcc
TMPLIB64 = lib
-CFLAGS += -DNO_ELFLINK
+CPPFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),sparc64)
CC64 = gcc -m64
TMPLIB64 = lib64
-CFLAGS += -DNO_ELFLINK
+CPPFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),s390x)
CC64 = gcc -m64
-CC32 = gcc -m31
-ELF32 = elf_s390
ELF64 = elf64_s390
TMPLIB64 = lib64
+CUSTOM_LDSCRIPTS = no
+else
+ifeq ($(ARCH),s390)
+CC32 = gcc -m31
+ELF32 = elf_s390
TMPLIB32 = lib
CUSTOM_LDSCRIPTS = no
else
@@ -89,6 +92,7 @@ $(error "Unrecognized architecture ($(AR
endif
endif
endif
+endif
endif
endif
endif