[openjfx] 10/11: Use the gold linker with memory saving options to avoid build failures caused by lack of RAM (Closes: #857464)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Oct 4 14:25:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository openjfx.

commit 24185e4db057d22b4d737dff78b7722f22ff8dec
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Oct 4 14:07:59 2017 +0200

    Use the gold linker with memory saving options to avoid build failures caused by lack of RAM (Closes: #857464)
---
 debian/changelog                             |  2 ++
 debian/patches/23-webcore-linker-flags.patch | 15 +++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 972083e..c1c01dc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ openjfx (8u141-b14-1) UNRELEASED; urgency=medium
   * New upstream release:
     - Fixes CVE-2017-10086 and CVE-2017-10114 (Closes: #870860)
   * Fixed the build failure with GCC 7 (Closes: #853593)
+  * Use the gold linker with memory saving options to avoid build failures
+    caused by lack of RAM (Closes: #857464)
   * Fixed a build failure on powerpc caused by a different ucontext_t definition
   * Backported a fix for accented characters in textfields (Closes: #872619)
   * Added lintian overrides to remove the warnings related to the js files
diff --git a/debian/patches/23-webcore-linker-flags.patch b/debian/patches/23-webcore-linker-flags.patch
new file mode 100644
index 0000000..a25631c
--- /dev/null
+++ b/debian/patches/23-webcore-linker-flags.patch
@@ -0,0 +1,15 @@
+Descrition: Use the gold linker with memory saving options to avoid build failures caused by lack of RAM
+Author: Emmanuel Bourg <ebourg at 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
+@@ -3809,7 +3809,7 @@
+ if (APPLE)
+     set_target_properties(WebCore PROPERTIES LINK_FLAGS "-exported_symbols_list ${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")
+ elseif (WIN32)
+     # Adds version information to jfxwebkit.dll created by Gradle build, see JDK-8166265
+     set_target_properties(WebCore PROPERTIES LINK_FLAGS "${CMAKE_BINARY_DIR}/WebCore/obj/version.res")
diff --git a/debian/patches/series b/debian/patches/series
index 43b6664..f54f0eb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,3 +17,4 @@ fix-arm32-build.patch
 20-fix-ppc-build.patch
 21-gcc7-compatibility.patch
 22-JDK-8185792-accented-characters-support.patch
+23-webcore-linker-flags.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/openjfx.git



More information about the pkg-java-commits mailing list