summaryrefslogtreecommitdiff
path: root/eclass/mozcoreconf-v6.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/mozcoreconf-v6.eclass')
-rw-r--r--eclass/mozcoreconf-v6.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass
index b5c3537eaf4d..2789e6046b9f 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
@@ -229,12 +229,12 @@ mozconfig_init() {
append-flags -fPIC
;;
ppc64)
- append-flags -fPIC -mminimal-toc
+ append-flags -fPIC
# Reduce the memory requirements for linking
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