toolchain.eclass: Selectively enable cet options per arch

Bug: https://bugs.gentoo.org/916381
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2024-03-12 00:04:34 +01:00
parent d9dce45487
commit b6bf005b84

View File

@@ -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