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