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
|
|
|
|
2013-01-23 11:39:58 +01:00
|
|
|
Index: libhugetlbfs-2.15/Makefile
|
2009-11-16 17:17:15 +01:00
|
|
|
===================================================================
|
2013-01-23 11:39:58 +01:00
|
|
|
--- 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
|
2008-08-28 12:39:19 +02:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),s390x)
|
|
|
|
CC64 = gcc -m64
|
|
|
|
-CC32 = gcc -m31
|
2013-01-23 11:39:58 +01:00
|
|
|
-ELF32 = elf_s390
|
|
|
|
ELF64 = elf64_s390
|
2009-11-16 17:17:15 +01:00
|
|
|
TMPLIB64 = lib64
|
2013-01-23 11:39:58 +01:00
|
|
|
+CUSTOM_LDSCRIPTS = no
|
2008-08-28 12:39:19 +02:00
|
|
|
+else
|
|
|
|
+ifeq ($(ARCH),s390)
|
|
|
|
+CC32 = gcc -m31
|
2013-01-23 11:39:58 +01:00
|
|
|
+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
|
2013-01-23 11:39:58 +01:00
|
|
|
@@ -89,6 +92,7 @@ $(error "Unrecognized architecture ($(AR
|
2008-08-28 12:39:19 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
+endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|