* [gentoo-dev] [PATCH] flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags whitelist)
@ 2023-05-07 15:41 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-05-07 15:41 UTC (permalink / raw
To: gentoo-dev; +Cc: toolchain, Sam James
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>
---
eclass/flag-o-matic.eclass | 1 +
1 file changed, 1 insertion(+)
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*'
--
2.40.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-07 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-07 15:41 [gentoo-dev] [PATCH] flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags whitelist) Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox