Skip to content

Commit

Permalink
eclass/toolchain: avoid emitting pie arguments when unset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
grobian committed Jul 24, 2024
1 parent d72b6b0 commit 8dad4bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eclass/toolchain.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dad4bd

Please sign in to comment.