aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openjfx11/webcore-linker-flags.patch
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-02-11 23:48:21 +0100
committerRasmus Thomsen <oss@cogitri.dev>2019-10-24 22:57:49 +0200
commit40247420d123ab342128ea409d5a949fe072eafe (patch)
tree3a19d4b1965e15c514b77a32b371b48c92dc8dc6 /testing/openjfx11/webcore-linker-flags.patch
parent4e4d49d380a193970dee1295bea2cd886d0c6d34 (diff)
downloadaports-40247420d123ab342128ea409d5a949fe072eafe.tar.bz2
aports-40247420d123ab342128ea409d5a949fe072eafe.tar.xz
testing/openjfx11: New aport
Diffstat (limited to 'testing/openjfx11/webcore-linker-flags.patch')
-rw-r--r--testing/openjfx11/webcore-linker-flags.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/openjfx11/webcore-linker-flags.patch b/testing/openjfx11/webcore-linker-flags.patch
new file mode 100644
index 0000000000..6e34ada923
--- /dev/null
+++ b/testing/openjfx11/webcore-linker-flags.patch
@@ -0,0 +1,16 @@
+Description: Use the gold linker with memory saving options to avoid build failures caused by lack of RAM
+Author: Emmanuel Bourg <ebourg@apache.org>
+Forwarded: no
+Bug-Debian: https://bugs.debian.org/857464
+Taken from: https://sources.debian.org/patches/openjfx/11.0.2+1-1/23-webcore-linker-flags.patch
+--- old/modules/javafx.web/src/main/native/Source/WebCore/PlatformJava.cmake
++++ new/modules/javafx.web/src/main/native/Source/WebCore/PlatformJava.cmake
+@@ -314,7 +314,7 @@
+ set_target_properties(JFXWebKit PROPERTIES LINK_FLAGS "-exported_symbols_list ${WEBCORE_DIR}/mapfile-macosx")
+ set(JFXWebKit_EXTERNAL_DEP "${WEBCORE_DIR}/mapfile-macosx")
+ elseif (UNIX)
+- set_target_properties(JFXWebKit PROPERTIES LINK_FLAGS "-Xlinker -version-script=${WEBCORE_DIR}/mapfile-vers -Wl,--no-undefined")
++ set_target_properties(JFXWebKit PROPERTIES LINK_FLAGS "-Xlinker -version-script=${WEBCORE_DIR}/mapfile-vers -fuse-ld=gold -Wl,--no-undefined -Wl,--no-keep-memory -Wl,--no-map-whole-files -Wl,--no-keep-files-mapped")
+ set(JFXWebKit_EXTERNAL_DEP "${WEBCORE_DIR}/mapfile-vers")
+ elseif (WIN32)
+ # Adds version information to jfxwebkit.dll created by Gradle build, see JDK-8166265