aboutsummaryrefslogtreecommitdiff
path: root/unmaintained/openjfx12/fix-arm64-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/openjfx12/fix-arm64-build.patch')
-rw-r--r--unmaintained/openjfx12/fix-arm64-build.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/unmaintained/openjfx12/fix-arm64-build.patch b/unmaintained/openjfx12/fix-arm64-build.patch
new file mode 100644
index 0000000000..5add350ff3
--- /dev/null
+++ b/unmaintained/openjfx12/fix-arm64-build.patch
@@ -0,0 +1,21 @@
1From: Iain Lane <iain.lane@canonical.com>
2Description: Fix arm64 build
3 Add AArch64 support in Platform.h
4 Don't use COMPARE_AND_SWAP on arm64; it produces invalid asm.
5 Fix some other areas where disabling JIT doesn't work.
6Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752735
7Forwarded: no
8Taken from: https://sources.debian.org/patches/openjfx/11.0.2+1-1/fix-arm64-build.patch
9--- old/modules/javafx.web/src/main/native/Source/WTF/wtf/Platform.h
10+++ new/modules/javafx.web/src/main/native/Source/WTF/wtf/Platform.h
11@@ -146,7 +146,9 @@
12 #if (defined(__arm64__) && defined(__APPLE__)) || defined(__aarch64__)
13 #define WTF_CPU_ARM64 1
14 #define WTF_CPU_KNOWN 1
15-
16+#if defined(__AARCH64BE__)
17+#define WTF_CPU_BIG_ENDIAN 1
18+#endif
19 #if defined(__arm64e__)
20 #define WTF_CPU_ARM64E 1
21 #endif