commit: b26f3f99faabc3574cd3510bc1f57b90bdf585e9 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Jun 15 23:05:45 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jun 15 23:05:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b26f3f99
toolchain.eclass: support --enable-host-pie for GCC 14 See also https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f9de5c24b9a6172d48786289035eed8f947c04c1. Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 952ad85fcde0..3578ac7f44ec 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -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
