File libhugetlbfs-ppc64le.patch of Package libhugetlbfs

Add ppc64le support

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

diff --git a/Makefile b/Makefile
index 48205af..7919c3b 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,11 @@ CC32 = gcc -m32
 ELF32 = elf32ppclinux
 endif
 else
+ifeq ($(ARCH),ppc64le)
+CC64 = gcc -m64
+ELF64 = elf64lppc
+TMPLIB64 = lib64
+else
 ifeq ($(ARCH),ppc)
 CC32 = gcc -m32
 ELF32 = elf32ppclinux
@@ -100,6 +105,7 @@ endif
 endif
 endif
 endif
+endif
 
 ifdef CC32
 OBJDIRS += obj32
diff --git a/contrib/tlbmiss_cost.sh b/contrib/tlbmiss_cost.sh
index 1f1e234..8fbf798 100755
--- a/contrib/tlbmiss_cost.sh
+++ b/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