commit: b6bf005b843e3d6ee10aa1f088d93c4f89055cc6 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Mon Mar 11 23:04:34 2024 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Mon Mar 11 23:05:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6bf005b
toolchain.eclass: Selectively enable cet options per arch Bug: https://bugs.gentoo.org/916381 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> eclass/toolchain.eclass | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 5a9749804b99..1cc7000c2377 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1240,10 +1240,8 @@ toolchain_src_configure() { fi if in_iuse cet ; then - confgcc+=( - $(use_enable cet) - $(use_enable cet standard-branch-protection) - ) + [[ ${CTARGET} == x86_64-*-gnu* ]] && confgcc+=( $(use_enable cet) ) + [[ ${CTARGET} == aarch64-*-gnu* ]] && confgcc+=( $(use_enable cet standard-branch-protection) ) fi if in_iuse systemtap ; then