aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2018-11-25 22:31:29 -0600
committerEric Bavier <bavier@member.fsf.org>2018-11-26 19:03:53 -0600
commitebdb15bc3540b1901f223bc0689bae51a2f88fc4 (patch)
tree12c7b8e1fe160addb6415dfc07f2d6aa9a813e5a
parent0995a5692cb85418b2d5f21c24d46ee4aa9fb7c9 (diff)
downloadpatches-ebdb15bc3540b1901f223bc0689bae51a2f88fc4.tar
patches-ebdb15bc3540b1901f223bc0689bae51a2f88fc4.tar.gz
qtwebkit: Reduce RAM requirements for linking.
* gnu/packages/qt.scm (qtwebkit)[arguments]: Link shared libraries and executables with "--no-keep-memory".
-rw-r--r--gnu/packages/qt.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index d8860e79a4..36f8aef694 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -2175,7 +2175,12 @@ different kinds of sliders, and much more.")
"-DUSE_SYSTEM_MALLOC=ON"
;; XXX: relative dir installs to build dir?
(string-append "-DECM_MKSPECS_INSTALL_DIR="
- %output "/lib/qt5/mkspecs/modules"))))
+ %output "/lib/qt5/mkspecs/modules")
+ ;; Sacrifice a little speed in order to link
+ ;; libraries and test executables in a
+ ;; reasonable amount of memory.
+ "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
+ "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
(home-page "https://www.webkit.org")
(synopsis "Web browser engine and classes to render and interact with web
content")