commit:     a987beb34abf907570d0e199fa062ad8dc929d68
Author:     Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Mon Mar 18 12:42:04 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 13:02:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a987beb3

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 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35816
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 

Reply via email to