From b6bf005b843e3d6ee10aa1f088d93c4f89055cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Tue, 12 Mar 2024 00:04:34 +0100 Subject: [PATCH] toolchain.eclass: Selectively enable cet options per arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/916381 Signed-off-by: Andreas K. Hüttel --- eclass/toolchain.eclass | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 5a9749804b998..1cc7000c23771 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