From 244cd0c852d76ed8339f0155bbb0560467e1f0bf Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 30 Sep 2024 09:16:10 +0200 Subject: eclass/toolchain: ensure fix-includes are used on Prefix guest platforms Signed-off-by: Fabian Groffen --- 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 -- cgit v1.2.3-65-gdbad