mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
parent
a07f997c52
commit
a13d692939
@ -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*'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user