Skip to content

Commit

Permalink
mozcoreconf-v6.eclass: fix lto on arm and ppc64
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/692500
Acked-by: Jory Pratt <anarchy@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
  • Loading branch information
gyakovlev committed Aug 30, 2019
1 parent 14f07d6 commit 9cc1ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/mozcoreconf-v6.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9cc1ad5

Please sign in to comment.