summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-24 21:27:05 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-24 21:27:05 +0200
commit8dad4bdf87218ef9c2264a320b5ba6ff83310dd2 (patch)
treed7dbb7d74840ad80e6585bdad95d9ceeca6b7641
parentscripts/bootstrap-prefix: make macOS Ventura and up skip GCC5 (diff)
downloadprefix-8dad4bdf87218ef9c2264a320b5ba6ff83310dd2.tar.gz
prefix-8dad4bdf87218ef9c2264a320b5ba6ff83310dd2.tar.bz2
prefix-8dad4bdf87218ef9c2264a320b5ba6ff83310dd2.zip
eclass/toolchain: avoid emitting pie arguments when unset
Like host-bind-now, the configure-foo for these pie arguments is messed up and whenever enabled/disabled enabled 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 b4a18a127a..b8c75854cb 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1320,11 +1320,16 @@ toolchain_src_configure() {
fi
if in_iuse pie ; then
+ # PREFIX_LOCAL
+ # configure check is flawed, --disable enables too, so omit when
+ # not set
+ if use pie ; then
confgcc+=( $(use_enable pie default-pie) )
if tc_version_is_at_least 14.0.0_pre20230612 ${PV} ; then
confgcc+=( --enable-host-pie )
fi
+ fi
fi
if in_iuse default-znow && tc_version_is_at_least 14.0.0_pre20230619 ${PV}; then