commit: 30f3ff1918fd6ced807451130fb79c432085470b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Mar 11 18:59:31 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 11 19:20:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30f3ff19
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 <AT> gentoo.org> eclass/toolchain.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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