commit:     15efad16589becfab913460fd30c3c9b11558368
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 17:13:17 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Apr 18 17:13:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15efad16

sys-fs/xfsprogs: simplify LTO logic

See commit d18ae0e7ce4e2f479eb2969633a85faa7d7d5287 upstream.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild 
b/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild
index 662d88603be..a44fed9dd62 100644
--- a/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild
+++ b/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild
@@ -82,20 +82,10 @@ src_configure() {
                $(usex readline --disable-editline $(use_enable libedit 
editline))
        )
 
-       if is-flagq -fno-lto ; then
-               einfo "LTO disabled via {C,CXX,F,FC}FLAGS"
-               myconf+=( --disable-lto )
+       if is-flagq -flto ; then
+               myconf+=( --enable-lto )
        else
-               if is-flagq -flto ; then
-                       einfo "LTO forced via {C,CXX,F,FC}FLAGS"
-                       myconf+=( --enable-lto )
-               elif use amd64 || use x86  ; then
-                       # match upstream default
-                       myconf+=( --enable-lto )
-               else
-                       # LTO can cause problems on some architectures, bug 
655638
-                       myconf+=( --disable-lto )
-               fi
+               myconf+=( --disable-lto )
        fi
 
        econf "${myconf[@]}"

Reply via email to