Skip to content

Commit

Permalink
toolchain.eclass: support --enable-host-pie for GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Jun 15, 2023
1 parent b290235 commit b26f3f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eclass/toolchain.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,10 @@ toolchain_src_configure() {

if in_iuse 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

if in_iuse ssp ; then
Expand Down

0 comments on commit b26f3f9

Please sign in to comment.