summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-29 19:02:42 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-29 19:06:42 -0700
commit9cc1ad54ffea7d8f0f4b94eede6dc3e182f1b152 (patch)
tree384a2532974cbaccd9aa86a3b8ada302647540c8 /eclass
parentmedia-sound/fluidsynth: bump to 2.0.6, add systemd support (diff)
downloadgentoo-9cc1ad54ffea7d8f0f4b94eede6dc3e182f1b152.tar.gz
gentoo-9cc1ad54ffea7d8f0f4b94eede6dc3e182f1b152.tar.bz2
gentoo-9cc1ad54ffea7d8f0f4b94eede6dc3e182f1b152.zip
mozcoreconf-v6.eclass: fix lto on arm and ppc64
Closes: https://bugs.gentoo.org/692500 Acked-by: Jory Pratt <anarchy@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mozcoreconf-v6.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass
index b5c3537eaf4d..df08dd19af69 100644
--- a/eclass/mozcoreconf-v6.eclass
+++ b/eclass/mozcoreconf-v6.eclass
@@ -212,7 +212,7 @@ mozconfig_init() {
if use clang ; then
# Nothing to do
:;
- elif tc-ld-is-gold ; then
+ elif tc-ld-is-gold || use lto; then
append-ldflags -Wl,--no-keep-memory
else
append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
@@ -234,7 +234,7 @@ mozconfig_init() {
if use clang ; then
# Nothing to do
:;
- elif tc-ld-is-gold ; then
+ elif tc-ld-is-gold || use lto; then
append-ldflags -Wl,--no-keep-memory
else
append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads