eclass/flag-o-matic: Sync with Gentoo

It's from Gentoo commit b5a4bfb180d002c29b35bfc267e47857ba481fb8.
This commit is contained in:
Flatcar Buildbot 2023-05-22 07:13:52 +00:00 committed by Krzesimir Nowak
parent 08f2bbd14f
commit 0bc3a902c6

View File

@ -47,11 +47,11 @@ setup-allowed-flags() {
# Note: shell globs and character lists are allowed # Note: shell globs and character lists are allowed
_setup-allowed-flags() { _setup-allowed-flags() {
ALLOWED_FLAGS=( ALLOWED_FLAGS=(
-pipe -O '-O[12sg]' '-mcpu=*' '-march=*' '-mtune=*' -pipe -O '-O[123szg]' '-mcpu=*' '-march=*' '-mtune=*'
-flto '-flto=*' -fno-lto
# Hardening flags # Hardening flags
'-fstack-protector*' '-fstack-protector*'
'-fstack-check*' -fno-stack-check
-fstack-clash-protection -fstack-clash-protection
'-fcf-protection=*' '-fcf-protection=*'
-fbounds-check -fbounds-checking -fbounds-check -fbounds-checking