commit:     244cd0c852d76ed8339f0155bbb0560467e1f0bf
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 07:16:10 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 07:16:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=244cd0c8

eclass/toolchain: ensure fix-includes are used on Prefix guest platforms

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 eclass/toolchain.eclass | 5 +++++
 1 file changed, 5 insertions(+)

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

Reply via email to