aboutsummaryrefslogtreecommitdiff
path: root/unmaintained/openjfx12/webcore-linker-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/openjfx12/webcore-linker-flags.patch')
-rw-r--r--unmaintained/openjfx12/webcore-linker-flags.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/unmaintained/openjfx12/webcore-linker-flags.patch b/unmaintained/openjfx12/webcore-linker-flags.patch
new file mode 100644
index 0000000000..6e34ada923
--- /dev/null
+++ b/unmaintained/openjfx12/webcore-linker-flags.patch
@@ -0,0 +1,16 @@
1Description: Use the gold linker with memory saving options to avoid build failures caused by lack of RAM
2Author: Emmanuel Bourg <ebourg@apache.org>
3Forwarded: no
4Bug-Debian: https://bugs.debian.org/857464
5Taken from: https://sources.debian.org/patches/openjfx/11.0.2+1-1/23-webcore-linker-flags.patch
6--- old/modules/javafx.web/src/main/native/Source/WebCore/PlatformJava.cmake
7+++ new/modules/javafx.web/src/main/native/Source/WebCore/PlatformJava.cmake
8@@ -314,7 +314,7 @@
9 set_target_properties(JFXWebKit PROPERTIES LINK_FLAGS "-exported_symbols_list ${WEBCORE_DIR}/mapfile-macosx")
10 set(JFXWebKit_EXTERNAL_DEP "${WEBCORE_DIR}/mapfile-macosx")
11 elseif (UNIX)
12- set_target_properties(JFXWebKit PROPERTIES LINK_FLAGS "-Xlinker -version-script=${WEBCORE_DIR}/mapfile-vers -Wl,--no-undefined")
13+ 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")
14 set(JFXWebKit_EXTERNAL_DEP "${WEBCORE_DIR}/mapfile-vers")
15 elseif (WIN32)
16 # Adds version information to jfxwebkit.dll created by Gradle build, see JDK-8166265