toolchain.eclass: disable automagic CET for x86

It's not supported on 32-bit kernels anyway.

This got lost in b6bf005b84 when wiring
up arm64.

Bug: https://bugs.gentoo.org/916381
Closes: https://bugs.gentoo.org/939874
Fixes: b6bf005b84
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-09-19 23:55:44 +01:00
parent d88a1ae9ef
commit d56d8f8e35

View File

@@ -1310,7 +1310,9 @@ toolchain_src_configure() {
fi
if in_iuse cet ; then
[[ ${CTARGET} == x86_64-*-gnu* ]] && confgcc+=( $(use_enable cet) )
if [[ ${CTARGET} == i[[34567]]86-*-linux* || ${CTARGET} == x86_64-*-gnu* ]] ; then
confgcc+=( $(use_enable cet) )
fi
[[ ${CTARGET} == aarch64-*-gnu* ]] && confgcc+=( $(use_enable cet standard-branch-protection) )
fi