diff options
author | Fabian Groffen <grobian@gentoo.org> | 2021-01-01 13:34:43 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2021-01-01 13:34:43 +0100 |
commit | c6178609ad13ed5b427b2caba8eeece057e775b5 (patch) | |
tree | f9c422e58e4a21a50ba384ead6566499ae830e0b | |
parent | scripts/bootstrap-prefix: install gnuconfig first thing (diff) | |
download | prefix-c6178609ad13ed5b427b2caba8eeece057e775b5.tar.gz prefix-c6178609ad13ed5b427b2caba8eeece057e775b5.tar.bz2 prefix-c6178609ad13ed5b427b2caba8eeece057e775b5.zip |
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@gentoo.org>
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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)" |