diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
commit | 957235cf19a691360c720f7913672adda4258ed0 (patch) | |
tree | 812bba7928f4293ead05a7ee9c1ac39c5ef9f12e /eclass/mozcoreconf-v6.eclass | |
parent | 62f67115b5c46134c34f88f4b1cbdacc19384c0a (diff) |
gentoo resync : 07.10.2018
Diffstat (limited to 'eclass/mozcoreconf-v6.eclass')
-rw-r--r-- | eclass/mozcoreconf-v6.eclass | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index 571f195b8e46..862d632cd99d 100644 --- a/eclass/mozcoreconf-v6.eclass +++ b/eclass/mozcoreconf-v6.eclass @@ -204,7 +204,14 @@ mozconfig_init() { case "${ARCH}" in arm) # Reduce the memory requirements for linking - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + if use clang ; then + # Nothing to do + :; + elif tc-ld-is-gold ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi ;; alpha) # Historically we have needed to add -fPIC manually for 64-bit. @@ -219,7 +226,14 @@ mozconfig_init() { ppc64) append-flags -fPIC -mminimal-toc # Reduce the memory requirements for linking - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + if use clang ; then + # Nothing to do + :; + elif tc-ld-is-gold ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi ;; esac |