summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-07 17:02:52 +0100
committerSam James <sam@gentoo.org>2023-05-07 17:02:52 +0100
commitb5a4bfb180d002c29b35bfc267e47857ba481fb8 (patch)
tree3d26b3bd16a22c25746d27b5b81ad7f99df9aa1a /eclass
parentsys-libs/glibc: add explicit filter-lto post-strip-flags change (diff)
downloadgentoo-b5a4bfb180d002c29b35bfc267e47857ba481fb8.tar.gz
gentoo-b5a4bfb180d002c29b35bfc267e47857ba481fb8.tar.bz2
gentoo-b5a4bfb180d002c29b35bfc267e47857ba481fb8.zip
flag-o-matic.eclass: allow -fno-lto too in strip-flags
Ionen rightly points out that people might have -flto by default and -fno-lto in package.env. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index ff0fa09ed152..bef3abf69dde 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -48,7 +48,7 @@ setup-allowed-flags() {
_setup-allowed-flags() {
ALLOWED_FLAGS=(
-pipe -O '-O[123szg]' '-mcpu=*' '-march=*' '-mtune=*'
- -flto '-flto=*'
+ -flto '-flto=*' -fno-lto
# Hardening flags
'-fstack-protector*'