commit: 10e9b9069e4b389579ce9ea475a37c546deade03
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 24 05:05:32 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 24 05:05:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10e9b906
toolchain.eclass: wire up --enable-host-bind-now for GCC 14
See also b26f3f99faabc3574cd3510bc1f57b90bdf585e9.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d69e2094dfbb..b6f3b4a97649 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1283,6 +1283,14 @@ toolchain_src_configure() {
fi
fi
+ if in_iuse default-znow && tc_version_is_at_least 14.0.0_pre20230619
${PV}; then
+ # See
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=33ebb0dff9bb022f1e0709e0e73faabfc3df7931.
+ # TODO: Add to LDFLAGS_FOR_TARGET?
+ confgcc+=(
+ $(use_enable default-znow host-bind-now)
+ )
+ fi
+
if in_iuse ssp ; then
confgcc+=(
# This defaults to -fstack-protector-strong.