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