]> git.pld-linux.org Git - packages/gtk-webkit4.git/blame - x32.patch
- updated to 2.38.6
[packages/gtk-webkit4.git] / x32.patch
CommitLineData
1d53109f
JP
1From: Alberto Garcia <berto@igalia.com>
2Description: Use WTF_CPU_UNKNOWN when building for X32
3 WebKitGTK doesn't build on X32 even with the JIT disabled.
4 Treating the CPU as unknown is perhaps a bit severe, but it allows us
5 to get the build done until someone steps up to maintain this
6 properly.
7Forwarded: no
72628bc4
JR
8Index: webkitgtk/Source/WTF/wtf/Platform.h
9===================================================================
3da177b8
JB
10--- webkitgtk-2.30.5/Source/WTF/wtf/PlatformCPU.h.orig 2020-08-12 11:17:54.000000000 +0200
11+++ webkitgtk-2.30.5/Source/WTF/wtf/PlatformCPU.h 2021-03-13 19:14:43.872248582 +0100
12@@ -105,8 +105,8 @@
13 #endif
14
72628bc4 15 /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
3da177b8
JB
16-#if defined(__x86_64__) \
17- || defined(_M_X64)
18+#if ( defined(__x86_64__) \
19+ || defined(_M_X64) ) && !defined(__ILP32__)
72628bc4 20 #define WTF_CPU_X86_64 1
95bafe57 21 #define WTF_CPU_X86_SSE2 1
80969aae 22 #define WTF_CPU_KNOWN 1
846fa469
JB
23--- webkitgtk-2.32.0/Source/cmake/WebKitCommon.cmake.orig 2021-02-26 10:57:17.000000000 +0100
24+++ webkitgtk-2.32.0/Source/cmake/WebKitCommon.cmake 2021-03-28 07:30:53.574578782 +0200
25@@ -90,6 +90,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
26 set(WTF_CPU_MIPS64 1)
27 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
28 set(WTF_CPU_MIPS 1)
29+ elseif (CMAKE_CXX_COMPILER_ABI STREQUAL "ELF X32")
30+ set(WTF_CPU_UNKNOWN 1)
31 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x64|x86_64|amd64)")
32 # FORCE_32BIT is set in the build script when --32-bit is passed
33 # on a Linux/intel 64bit host. This allows us to produce 32bit
This page took 0.21445 seconds and 4 git commands to generate.