summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-07 16:41:11 +0100
committerSam James <sam@gentoo.org>2023-05-07 16:59:20 +0100
commite6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd (patch)
tree5199a1316c5a788dfafe030e6ffb2d3a2b50a15f /eclass
parentflag-o-matic.eclass: drop -fstack-check from ALLOWED_FLAGS (strip-flags white... (diff)
downloadgentoo-e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd.tar.gz
gentoo-e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd.tar.bz2
gentoo-e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd.zip
flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags whitelist)
LTO is pretty safe nowadays and packages broken with it should really use filter-lto specifically instead. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index be169f934c02..201b033df279 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -48,6 +48,7 @@ setup-allowed-flags() {
_setup-allowed-flags() {
ALLOWED_FLAGS=(
-pipe -O '-O[123sg]' '-mcpu=*' '-march=*' '-mtune=*'
+ -flto '-flto=*'
# Hardening flags
'-fstack-protector*'