File ppc64le-support.patch of Package js

Index: js-1.8.5/js/src/configure.in
===================================================================
--- js-1.8.5.orig/js/src/configure.in
+++ js-1.8.5/js/src/configure.in
@@ -1498,7 +1498,7 @@ case "$OS_TEST" in
     CPU_ARCH=x86
     ;;
 
-powerpc64 | ppc64)
+powerpc64 | ppc64 | powerpc64le | ppc64le)
     CPU_ARCH=ppc64
     ;;
 
Index: js-1.8.5/js/src/assembler/wtf/Platform.h
===================================================================
--- js-1.8.5.orig/js/src/assembler/wtf/Platform.h
+++ js-1.8.5/js/src/assembler/wtf/Platform.h
@@ -129,16 +129,22 @@
    || defined(__POWERPC__) \
    || defined(_M_PPC)      \
    || defined(__PPC)
+#if !defined(__ppc64__) && !defined(__PPC64__)
 #define WTF_CPU_PPC 1
+#endif
+#if !defined(__LITTLE_ENDIAN__)
 #define WTF_CPU_BIG_ENDIAN 1
 #endif
+#endif
 
 /* CPU(PPC64) - PowerPC 64-bit */
 #if   defined(__ppc64__) \
    || defined(__PPC64__)
 #define WTF_CPU_PPC64 1
+#if !defined(__LITTLE_ENDIAN__)
 #define WTF_CPU_BIG_ENDIAN 1
 #endif
+#endif
 
 /* CPU(SH4) - SuperH SH-4 */
 #if defined(__SH4__)
openSUSE Build Service is sponsored by