diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-03-12 00:04:34 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-03-12 00:05:16 +0100 |
commit | b6bf005b843e3d6ee10aa1f088d93c4f89055cc6 (patch) | |
tree | 51807f39f4af948686879a8a8500194cb240a7cc /eclass/toolchain.eclass | |
parent | dev-libs/libcroco: filter LTO, no-SA (diff) | |
download | gentoo-b6bf005b843e3d6ee10aa1f088d93c4f89055cc6.tar.gz gentoo-b6bf005b843e3d6ee10aa1f088d93c4f89055cc6.tar.bz2 gentoo-b6bf005b843e3d6ee10aa1f088d93c4f89055cc6.zip |
toolchain.eclass: Selectively enable cet options per arch
Bug: https://bugs.gentoo.org/916381
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files 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 |