From: Mike Gilbert Date: Sat, 18 Apr 2020 17:13:17 +0000 (-0400) Subject: sys-fs/xfsprogs: simplify LTO logic X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15efad16589becfab913460fd30c3c9b11558368;p=gentoo.git sys-fs/xfsprogs: simplify LTO logic See commit d18ae0e7ce4e2f479eb2969633a85faa7d7d5287 upstream. Signed-off-by: Mike Gilbert --- diff --git a/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild b/sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild index 662d88603bec..a44fed9dd620 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[@]}"