commit: a13d692939efda7afb29c1d8a2cb1d5717972b89
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May 6 15:53:40 2025 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May 6 17:40:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a13d6929
flag-o-matic.eclass: allow -ffat-lto-objects in strip-flags
This flag is "safe" for the same reason `-flto` is "safe". Furthermore,
the new dot-a.eclass relies on setting this flag, which `strip-flags` then
deletes again in the event that a package uses both `lto-guarantee-fat` and
`strip-flags`.
End result: static libraries that contain neither LTO nor regular object
code.
Example package that does this: dev-libs/nss
Acked-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
eclass/flag-o-matic.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 85274c91121f..f22854c646c7 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -46,7 +46,7 @@ setup-allowed-flags() {
_setup-allowed-flags() {
ALLOWED_FLAGS=(
-pipe -O '-O[123szg]' '-mcpu=*' '-march=*' '-mtune=*'
'-mfpmath=*'
- -flto '-flto=*' -fno-lto
+ -flto '-flto=*' -fno-lto -ffat-lto-objects
# Hardening flags
'-fstack-protector*'