forked from pool/MozillaFirefox
65e2d4d5d7
- Add support for powerpc64le-linux. * ppc64le-support.patch: general support * libffi-ppc64le.patch: libffi backport * xpcom-ppc64le.patch: port xpcom - Add build fix from mainline. * mozilla-bug929439.patch OBS-URL: https://build.opensuse.org/request/show/211248 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=360
160 lines
4.4 KiB
Diff
160 lines
4.4 KiB
Diff
Index: mozilla/configure.in
|
|
===================================================================
|
|
--- mozilla.orig/configure.in
|
|
+++ mozilla/configure.in
|
|
@@ -1084,7 +1084,7 @@ case "$OS_TEST" in
|
|
CPU_ARCH=x86
|
|
;;
|
|
|
|
-powerpc64 | ppc64)
|
|
+powerpc64 | ppc64 | powerpc64le | ppc64le)
|
|
CPU_ARCH=ppc64
|
|
;;
|
|
|
|
Index: mozilla/js/src/configure.in
|
|
===================================================================
|
|
--- mozilla.orig/js/src/configure.in
|
|
+++ mozilla/js/src/configure.in
|
|
@@ -915,7 +915,7 @@ case "$OS_TEST" in
|
|
CPU_ARCH=x86
|
|
;;
|
|
|
|
-powerpc64 | ppc64)
|
|
+powerpc64 | ppc64 | powerpc64le | ppc64le)
|
|
CPU_ARCH=ppc64
|
|
;;
|
|
|
|
Index: mozilla/mfbt/Endian.h
|
|
===================================================================
|
|
--- mozilla.orig/mfbt/Endian.h
|
|
+++ mozilla/mfbt/Endian.h
|
|
@@ -91,7 +91,7 @@
|
|
# else
|
|
# error "CPU type is unknown"
|
|
# endif
|
|
-#elif defined(__APPLE__)
|
|
+#elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__)
|
|
# if __LITTLE_ENDIAN__
|
|
# define MOZ_LITTLE_ENDIAN 1
|
|
# elif __BIG_ENDIAN__
|
|
@@ -119,8 +119,7 @@
|
|
* cases.
|
|
*/
|
|
#elif defined(__sparc) || defined(__sparc__) || \
|
|
- defined(_POWER) || defined(__powerpc__) || \
|
|
- defined(__ppc__) || defined(__hppa) || \
|
|
+ defined(_POWER) || defined(__hppa) || \
|
|
defined(_MIPSEB) || defined(__ARMEB__) || \
|
|
defined(__s390__) || \
|
|
(defined(__sh__) && defined(__LITTLE_ENDIAN__)) || \
|
|
Index: mozilla/js/src/jscpucfg.h
|
|
===================================================================
|
|
--- mozilla.orig/js/src/jscpucfg.h
|
|
+++ mozilla/js/src/jscpucfg.h
|
|
@@ -31,7 +31,7 @@
|
|
# define JS_BYTES_PER_WORD 4
|
|
# define JS_BITS_PER_WORD_LOG2 5
|
|
|
|
-#elif defined(__APPLE__)
|
|
+#elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__)
|
|
# if __LITTLE_ENDIAN__
|
|
# define IS_LITTLE_ENDIAN 1
|
|
# undef IS_BIG_ENDIAN
|
|
@@ -93,8 +93,7 @@
|
|
# endif
|
|
|
|
#elif defined(__sparc) || defined(__sparc__) || \
|
|
- defined(_POWER) || defined(__powerpc__) || \
|
|
- defined(__ppc__) || defined(__hppa) || \
|
|
+ defined(_POWER) || defined(__hppa) || \
|
|
defined(_MIPSEB) || defined(_BIG_ENDIAN)
|
|
/* IA64 running HP-UX will have _BIG_ENDIAN defined.
|
|
* IA64 running Linux will have endian.h and be handled above.
|
|
Index: mozilla/js/src/assembler/wtf/Platform.h
|
|
===================================================================
|
|
--- mozilla.orig/js/src/assembler/wtf/Platform.h
|
|
+++ mozilla/js/src/assembler/wtf/Platform.h
|
|
@@ -165,16 +165,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
|
|
|
|
/* WTF_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
|
|
|
|
/* WTF_CPU_SH4 - SuperH SH-4 */
|
|
#if defined(__SH4__)
|
|
Index: mozilla/nsprpub/pr/include/md/_linux.cfg
|
|
===================================================================
|
|
--- mozilla.orig/nsprpub/pr/include/md/_linux.cfg
|
|
+++ mozilla/nsprpub/pr/include/md/_linux.cfg
|
|
@@ -29,8 +29,13 @@
|
|
|
|
#ifdef __powerpc64__
|
|
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define IS_LITTLE_ENDIAN 1
|
|
+#undef IS_BIG_ENDIAN
|
|
+#else
|
|
#undef IS_LITTLE_ENDIAN
|
|
#define IS_BIG_ENDIAN 1
|
|
+#endif
|
|
#define IS_64
|
|
|
|
#define PR_BYTES_PER_BYTE 1
|
|
@@ -75,8 +80,13 @@
|
|
|
|
#elif defined(__powerpc__)
|
|
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define IS_LITTLE_ENDIAN 1
|
|
+#undef IS_BIG_ENDIAN
|
|
+#else
|
|
#undef IS_LITTLE_ENDIAN
|
|
#define IS_BIG_ENDIAN 1
|
|
+#endif
|
|
|
|
#define PR_BYTES_PER_BYTE 1
|
|
#define PR_BYTES_PER_SHORT 2
|
|
Index: mozilla/media/webrtc/trunk/webrtc/typedefs.h
|
|
===================================================================
|
|
--- mozilla.orig/media/webrtc/trunk/webrtc/typedefs.h
|
|
+++ mozilla/media/webrtc/trunk/webrtc/typedefs.h
|
|
@@ -52,13 +52,23 @@
|
|
#elif defined(__powerpc64__)
|
|
#define WEBRTC_ARCH_PPC64 1
|
|
#define WEBRTC_ARCH_64_BITS 1
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
+#define WEBRTC_LITTLE_ENDIAN
|
|
+#else
|
|
#define WEBRTC_ARCH_BIG_ENDIAN
|
|
#define WEBRTC_BIG_ENDIAN
|
|
+#endif
|
|
#elif defined(__ppc__) || defined(__powerpc__)
|
|
#define WEBRTC_ARCH_PPC 1
|
|
#define WEBRTC_ARCH_32_BITS 1
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
+#define WEBRTC_LITTLE_ENDIAN
|
|
+#else
|
|
#define WEBRTC_ARCH_BIG_ENDIAN
|
|
#define WEBRTC_BIG_ENDIAN
|
|
+#endif
|
|
#elif defined(__sparc64__)
|
|
#define WEBRTC_ARCH_SPARC 1
|
|
#define WEBRTC_ARCH_64_BITS 1
|