316968e434
The WTF Platform.h file hard-coded PowerPC as big-endian. This breaks building on little-endian PowerPC machines. - Add ppc64le-support.patch: Support powerpc64le-linux. (forwarded request 211856 from uweigand) OBS-URL: https://build.opensuse.org/request/show/211886 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtscript?expand=0&rev=7
28 lines
879 B
Diff
28 lines
879 B
Diff
Index: qtscript-opensource-src-5.2.0-rc1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
|
===================================================================
|
|
--- qtscript-opensource-src-5.2.0-rc1.orig/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
|
+++ qtscript-opensource-src-5.2.0-rc1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
|
@@ -156,16 +156,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__)
|