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
|
|
|
|
2014-04-09 11:58:06 +02:00
|
|
|
Index: libhugetlbfs-2.17/Makefile
|
2009-11-16 17:17:15 +01:00
|
|
|
===================================================================
|
2014-04-09 11:58:06 +02:00
|
|
|
--- libhugetlbfs-2.17.orig/Makefile
|
|
|
|
+++ libhugetlbfs-2.17/Makefile
|
|
|
|
@@ -82,12 +82,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
|
|
|
|
@@ -98,10 +98,15 @@ TMPLIB64 = lib64
|
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
|