commit: 3d9bf42572525fe0b46db86aaf362af70131e313
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 12:00:19 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 12:00:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3d9bf425
toolchain.eclass: handle quirky behaviour of --enable-host-bind-now
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
eclass/toolchain.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 85bb14220c..b4a18a127a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1330,9 +1330,14 @@ toolchain_src_configure() {
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?
+ # PREFIX_LOCAL
+ # configure check is flawed, --disable enables too, so omit when
+ # not set
+ if use default-znow ; then
confgcc+=(
$(use_enable default-znow host-bind-now)
)
+ fi
fi
if in_iuse ssp ; then