diff options
author | 2024-03-18 07:42:04 -0500 | |
---|---|---|
committer | 2024-03-18 13:02:35 +0000 | |
commit | a987beb34abf907570d0e199fa062ad8dc929d68 (patch) | |
tree | e0091cae4f652e5a8e84d8abfb721ac3b979dab1 /eclass/toolchain.eclass | |
parent | www-apps/nanoc: add missing test dependency (diff) | |
download | gentoo-a987beb34abf907570d0e199fa062ad8dc929d68.tar.gz gentoo-a987beb34abf907570d0e199fa062ad8dc929d68.tar.bz2 gentoo-a987beb34abf907570d0e199fa062ad8dc929d68.zip |
toolchain.eclass: More selectively enable cet per arch
This block enables the x86_64 specific -fcf-protection during bootstrap.
Added check to ensure its only enabled there.
Bug: https://bugs.gentoo.org/916381
Fixes: b6bf005b843e3d6ee10aa1f088d93c4f89055cc6
Signed-off-by: Kyle Elbert <kcelbert@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35816
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 59d51d9c1e38..e962c8181693 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -907,7 +907,7 @@ toolchain_src_configure() { BUILD_CONFIG_TARGETS+=( bootstrap-lto ) fi - if tc_version_is_at_least 12 && _tc_use_if_iuse cet ; then + if tc_version_is_at_least 12 && _tc_use_if_iuse cet && [[ ${CTARGET} == x86_64-*-gnu* ]] ; then BUILD_CONFIG_TARGETS+=( bootstrap-cet ) fi |