Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 0a8dbdb22d475e5cf8d5ac6ebced136e > files > 14

java-1.8.0-openjfx-1.8.0.181-1.b12.2.mga6.src.rpm

Descrition: 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
--- a/modules/web/src/main/native/Source/WebCore/CMakeLists.txt
+++ b/modules/web/src/main/native/Source/WebCore/CMakeLists.txt
@@ -3837,7 +3837,7 @@
         set_target_properties(WebCore PROPERTIES LINK_FLAGS "-exported_symbols_list ${WEBCORE_DIR}/mapfile-macosx")
         add_custom_target(WebCore_map DEPENDS "${WEBCORE_DIR}/mapfile-macosx")
     elseif (UNIX)
-        set_target_properties(WebCore PROPERTIES LINK_FLAGS "-Xlinker -version-script=${WEBCORE_DIR}/mapfile-vers -Wl,--no-undefined")
+        set_target_properties(WebCore 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")
         add_custom_target(WebCore_map DEPENDS "${WEBCORE_DIR}/mapfile-vers")
     elseif (WIN32)
         # Adds version information to jfxwebkit.dll created by Gradle build, see JDK-8166265