LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libhugetlbfs.s390.patch of Package libhugetlbfs (Project Base:System)

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