libhugetlbfs/libhugetlbfs.s390.patch
Marcus Meissner 25f7cb99ec Accepting request 229281 from devel:ARM:Factory
- update to 2.17:
 * PPC segement alignment restrictions can be disabled
 * Added Aarch64 support
 * Allow compiler overrides for 64 and 32 bit builds
 * hugeadm now handles /etc/mtab being a simlink properly
  * ppc64 fixes
- remove libhugetlbfs.ia64-libdir.patch:
  ia64 is no longer supported by openSUSE
- add ignore-perl-modules.diff: do not install perl modules, unused
  and are installed in the wrong place to be found anyway
- add ARM support
- add disable-rw-on-non-ldscripts.diff: Skip rw tests
- Do not install tests anymore

OBS-URL: https://build.opensuse.org/request/show/229281
OBS-URL: https://build.opensuse.org/package/show/Base:System/libhugetlbfs?expand=0&rev=37
2014-04-09 09:58:06 +00:00

40 lines
786 B
Diff

---
Makefile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Index: libhugetlbfs-2.17/Makefile
===================================================================
--- libhugetlbfs-2.17.orig/Makefile
+++ libhugetlbfs-2.17/Makefile
@@ -82,12 +82,12 @@ else
ifeq ($(ARCH),ia64)
CC64 = $(CC)
TMPLIB64 = lib64
-CFLAGS += -DNO_ELFLINK
+CPPFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),sparc64)
CC64 = $(CC) -m64
TMPLIB64 = lib64
-CFLAGS += -DNO_ELFLINK
+CPPFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),s390x)
CC64 = $(CC) -m64
@@ -98,10 +98,15 @@ TMPLIB64 = lib64
TMPLIB32 = lib
CUSTOM_LDSCRIPTS = no
else
+ifeq ($(ARCH),s390)
+CC32 = gcc -m31
+ELF32 = elf_s390
+else
$(error "Unrecognized architecture ($(ARCH))")
endif
endif
endif
+endif
endif
endif
endif