2008-08-28 12:39:19 +02:00
|
|
|
---
|
2013-01-23 11:39:58 +01:00
|
|
|
Makefile | 12 ++++++++----
|
|
|
|
1 file changed, 8 insertions(+), 4 deletions(-)
|
2008-08-28 12:39:19 +02:00
|
|
|
|
2018-10-02 11:41:43 +02:00
|
|
|
Index: libhugetlbfs-2.21/Makefile
|
2009-11-16 17:17:15 +01:00
|
|
|
===================================================================
|
2018-10-02 11:41:43 +02:00
|
|
|
--- libhugetlbfs-2.21.orig/Makefile
|
|
|
|
+++ libhugetlbfs-2.21/Makefile
|
|
|
|
@@ -87,12 +87,12 @@ else
|
2013-01-23 11:39:58 +01:00
|
|
|
ifeq ($(ARCH),ia64)
|
2014-04-09 11:58:06 +02:00
|
|
|
CC64 = $(CC)
|
|
|
|
TMPLIB64 = lib64
|
2013-01-23 11:39:58 +01:00
|
|
|
-CFLAGS += -DNO_ELFLINK
|
|
|
|
+CPPFLAGS += -DNO_ELFLINK
|
|
|
|
else
|
|
|
|
ifeq ($(ARCH),sparc64)
|
2014-04-09 11:58:06 +02:00
|
|
|
CC64 = $(CC) -m64
|
2013-01-23 11:39:58 +01:00
|
|
|
TMPLIB64 = lib64
|
|
|
|
-CFLAGS += -DNO_ELFLINK
|
|
|
|
+CPPFLAGS += -DNO_ELFLINK
|
2008-08-28 12:39:19 +02:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),s390x)
|
2014-04-09 11:58:06 +02:00
|
|
|
CC64 = $(CC) -m64
|
2018-10-02 11:41:43 +02:00
|
|
|
@@ -111,10 +111,15 @@ ELF32 = elf_s390
|
2009-11-16 17:17:15 +01:00
|
|
|
TMPLIB32 = lib
|
2013-01-23 11:39:58 +01:00
|
|
|
CUSTOM_LDSCRIPTS = no
|
2008-08-28 12:39:19 +02:00
|
|
|
else
|
2014-04-09 11:58:06 +02:00
|
|
|
+ifeq ($(ARCH),s390)
|
|
|
|
+CC32 = gcc -m31
|
|
|
|
+ELF32 = elf_s390
|
|
|
|
+else
|
|
|
|
$(error "Unrecognized architecture ($(ARCH))")
|
2008-08-28 12:39:19 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
+endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|