commit: c6178609ad13ed5b427b2caba8eeece057e775b5 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Fri Jan 1 12:34:43 2021 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Fri Jan 1 12:34:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=c6178609
scripts/bootstrap-prefix: only set -isysroot in stage3 with GCC Clang gets utterly confused on this, so avoid it. Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> scripts/bootstrap-prefix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index ea77baae8d..8d1260c558 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1915,7 +1915,8 @@ bootstrap_stage3() { } export CONFIG_SHELL="${ROOT}"/tmp/bin/bash - export CPPFLAGS="-isystem ${ROOT}/usr/include" + [[ ${compiler_type} == gcc ]] && \ + export CPPFLAGS="-isystem ${ROOT}/usr/include" export LDFLAGS="-L${ROOT}/usr/$(get_libdir)" [[ ${CHOST} == *-darwin* ]] || \ LDFLAGS+=" -Wl,-rpath=${ROOT}/usr/$(get_libdir)"