eclass/toolchain: Sync with Gentoo

It's from Gentoo commit d6cb7a61dad7e9672a8448597835dbbf9b9e0ccf.
This commit is contained in:
Krzesimir Nowak 2024-11-13 14:51:52 +01:00
parent e1191a2841
commit 1586c04b48

View File

@ -1252,7 +1252,10 @@ toolchain_src_configure() {
# ;;
# esac
### Cross-compiler options
### Cross-compiler option
#
# Note that 'newlib' here doesn't have to mean genuine newlib.
# See https://gcc.gnu.org/pipermail/gcc/2014-January/211653.html.
if is_crosscompile ; then
# Enable build warnings by default with cross-compilers when system
# paths are included (e.g. via -I flags).
@ -1583,7 +1586,6 @@ toolchain_src_configure() {
fi
}
enable_cet_for 'i[34567]86' 'gnu' 'cet'
enable_cet_for 'x86_64' 'gnu' 'cet'
enable_cet_for 'aarch64' 'gnu' 'standard-branch-protection'
fi