File libhugetlbfs-ppc64le.patch of Package libhugetlbfs

Add ppc64le support

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Index: libhugetlbfs-2.17/Makefile
===================================================================
--- libhugetlbfs-2.17.orig/Makefile
+++ libhugetlbfs-2.17/Makefile
@@ -46,6 +46,11 @@ ifneq ($(BUILDTYPE),NATIVEONLY)
 CC32 = $(CC) -m32
 ELF32 = elf32ppclinux
 endif
+else
+ifeq ($(ARCH),ppc64le)
+CC64 = $(CC) -m64
+ELF64 = elf64lppc
+TMPLIB64 = lib64
 else
 ifeq ($(ARCH),powerpc)
 CC32 = $(CC) -m32
@@ -106,6 +110,7 @@ $(error "Unrecognized architecture ($(AR
 endif
 endif
 endif
+endif
 endif
 endif
 endif
--- libhugetlbfs-2.17.orig/contrib/tlbmiss_cost.sh
+++ libhugetlbfs-2.17/contrib/tlbmiss_cost.sh
@@ -44,7 +44,7 @@ cpumhz() {
 	FNAME="cpu MHz"
 	FINDEX=4
 	case "`uname -m`" in
-		ppc64)
+		ppc64|ppc64le)
 			FNAME="clock"
 			FINDEX=3
 			;;
openSUSE Build Service is sponsored by