summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-16 00:05:45 +0100
committerSam James <sam@gentoo.org>2023-06-16 00:05:45 +0100
commitb26f3f99faabc3574cd3510bc1f57b90bdf585e9 (patch)
tree70bac35f23612fc5165072133141778af6a44ca3 /eclass
parentsys-devel/gcc: add 11.4.1_p20230615 (diff)
downloadgentoo-b26f3f99faabc3574cd3510bc1f57b90bdf585e9.tar.gz
gentoo-b26f3f99faabc3574cd3510bc1f57b90bdf585e9.tar.bz2
gentoo-b26f3f99faabc3574cd3510bc1f57b90bdf585e9.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 4 insertions, 0 deletions
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