From 15efad16589becfab913460fd30c3c9b11558368 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 18 Apr 2020 13:13:17 -0400 Subject: [PATCH] sys-fs/xfsprogs: simplify LTO logic See commit d18ae0e7ce4e2f479eb2969633a85faa7d7d5287 upstream. Signed-off-by: Mike Gilbert --- 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 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[@]}" -- 2.26.2