summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-24 06:05:32 +0100
committerSam James <sam@gentoo.org>2023-06-24 06:05:48 +0100
commit10e9b9069e4b389579ce9ea475a37c546deade03 (patch)
tree8b6ac297c020f5762aaf07e554ca93692a4ed0ba /eclass
parentdev-util/diffoscope: add 243 (diff)
downloadgentoo-10e9b9069e4b389579ce9ea475a37c546deade03.tar.gz
gentoo-10e9b9069e4b389579ce9ea475a37c546deade03.tar.bz2
gentoo-10e9b9069e4b389579ce9ea475a37c546deade03.zip
toolchain.eclass: wire up --enable-host-bind-now for GCC 14
See also b26f3f99faabc3574cd3510bc1f57b90bdf585e9. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 8 insertions, 0 deletions
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.