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