diff options
author | Sam James <sam@gentoo.org> | 2024-03-11 18:59:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-11 19:20:16 +0000 |
commit | 30f3ff1918fd6ced807451130fb79c432085470b (patch) | |
tree | 0c17d1a0f07b6022814aea9967ce35d463967e9c /eclass | |
parent | dev-java/tomcat-native: drop 2.0.6 (diff) | |
download | gentoo-30f3ff1918fd6ced807451130fb79c432085470b.tar.gz gentoo-30f3ff1918fd6ced807451130fb79c432085470b.tar.bz2 gentoo-30f3ff1918fd6ced807451130fb79c432085470b.zip |
toolchain.eclass: pass --enable-standard-branch-detection if USE=cet
This enables BTI and PAC if supported for arm64. We decided to overload
USE=cet to avoid adding yet-another-USE flag to GCC, given it's the same
thing.
Bug: https://bugs.gentoo.org/916381
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 05409f0fc3fa..5a9749804b99 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1240,7 +1240,10 @@ toolchain_src_configure() { fi if in_iuse cet ; then - confgcc+=( $(use_enable cet) ) + confgcc+=( + $(use_enable cet) + $(use_enable cet standard-branch-protection) + ) fi if in_iuse systemtap ; then |