libhugetlbfs/libhugetlbfs.s390.patch
OBS User autobuild 2e4491a314 Accepting request 24429 from Base:System
Copy from Base:System/libhugetlbfs based on submit request 24429 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libhugetlbfs?expand=0&rev=13
2009-11-16 16:17:15 +00:00

32 lines
642 B
Diff

Do not build 31 bit for S390x, allow to build on S390
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: libhugetlbfs-2.5/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/Makefile
+++ libhugetlbfs-2.5/Makefile
@@ -74,8 +74,11 @@ CFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),s390x)
CC64 = gcc -m64
-CC32 = gcc -m31
TMPLIB64 = lib64
+CFLAGS += -DNO_ELFLINK
+else
+ifeq ($(ARCH),s390)
+CC32 = gcc -m31
TMPLIB32 = lib
CFLAGS += -DNO_ELFLINK
else
@@ -83,6 +86,7 @@ $(error "Unrecognized architecture ($(AR
endif
endif
endif
+endif
endif
endif
endif