commit: 8dad4bdf87218ef9c2264a320b5ba6ff83310dd2
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 24 19:27:05 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jul 24 19:27:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8dad4bdf
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 <AT> gentoo.org>
eclass/toolchain.eclass | 5 +++++
1 file changed, 5 insertions(+)
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