summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-09-30 09:16:10 +0200
committerFabian Groffen <grobian@gentoo.org>2024-09-30 09:16:10 +0200
commit244cd0c852d76ed8339f0155bbb0560467e1f0bf (patch)
treeab8b59713925ad2070444a89472061145404dd68
parentsys-devel/gcc: replace USE=bootstrap with USE=system-bootstrap (diff)
downloadprefix-244cd0c852d76ed8339f0155bbb0560467e1f0bf.tar.gz
prefix-244cd0c852d76ed8339f0155bbb0560467e1f0bf.tar.bz2
prefix-244cd0c852d76ed8339f0155bbb0560467e1f0bf.zip
eclass/toolchain: ensure fix-includes are used on Prefix guest platforms
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ba0cd7da5b..66f8d117b7 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1445,6 +1445,11 @@ toolchain_src_configure() {
;;
esac
+ # PREFIX_LOCAL: host OS very likely needs tweaks, so install
+ # these in order to allow compiling GCC itself and packages
+ # afterwards
+ use prefix-guest && GCC_RUN_FIXINCLUDES=1
+
if [[ ${GCC_RUN_FIXINCLUDES} == 1 ]] ; then
confgcc+=( --enable-fixincludes )
else