summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-17 14:00:19 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-17 14:00:19 +0200
commit3d9bf42572525fe0b46db86aaf362af70131e313 (patch)
tree4196d3860f244cb68596ff7723661968e77b638f
parentscripts/bootstrap-prefix: define PORTAGE_INST_{UID,GID} (diff)
downloadprefix-3d9bf42572525fe0b46db86aaf362af70131e313.tar.gz
prefix-3d9bf42572525fe0b46db86aaf362af70131e313.tar.bz2
prefix-3d9bf42572525fe0b46db86aaf362af70131e313.zip
toolchain.eclass: handle quirky behaviour of --enable-host-bind-now
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 5 insertions, 0 deletions
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