commit:     55c2d50a216d04cf84cea4645fd23d2cfd5b485a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 20 19:46:14 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Oct 20 19:46:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55c2d50a

www-client/firefox: fix lto on arm and ppc64

Bug: https://bugs.gentoo.org/692500
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 www-client/firefox/firefox-78.4.0.ebuild | 2 +-
 www-client/firefox/firefox-82.0.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-client/firefox/firefox-78.4.0.ebuild 
b/www-client/firefox/firefox-78.4.0.ebuild
index 7eb86858b04..34bd7f8326f 100644
--- a/www-client/firefox/firefox-78.4.0.ebuild
+++ b/www-client/firefox/firefox-78.4.0.ebuild
@@ -774,7 +774,7 @@ src_configure() {
                        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

diff --git a/www-client/firefox/firefox-82.0.ebuild 
b/www-client/firefox/firefox-82.0.ebuild
index 822c811a003..8eee3434a0f 100644
--- a/www-client/firefox/firefox-82.0.ebuild
+++ b/www-client/firefox/firefox-82.0.ebuild
@@ -774,7 +774,7 @@ src_configure() {
                        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

Reply via email to