summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-18 13:13:17 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-18 13:13:17 -0400
commit15efad16589becfab913460fd30c3c9b11558368 (patch)
tree548ee45ba28b8f0b27d75512994a6ddb1d1ffbdb /sys-fs/xfsprogs
parentmedia-gfx/gnome-photos: enable py3.7 for tests (diff)
downloadgentoo-15efad16589becfab913460fd30c3c9b11558368.tar.gz
gentoo-15efad16589becfab913460fd30c3c9b11558368.tar.bz2
gentoo-15efad16589becfab913460fd30c3c9b11558368.zip
sys-fs/xfsprogs: simplify LTO logic
See commit d18ae0e7ce4e2f479eb2969633a85faa7d7d5287 upstream. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs/xfsprogs')
-rw-r--r--sys-fs/xfsprogs/xfsprogs-5.6.0.ebuild16
1 files 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[@]}"