commit: 03e091d4c48537775f2b91b508a76b3b26818bd1
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 2 19:43:09 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Feb 2 19:43:09 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=03e091d4
bootstrap_stage3: ensure we use includes from target prefix
Because we use a compiler from stage2 (= EPREFIX/tmp) it also has its
searchpath setup to look in that prefix. This gives problems when we
need libraries/includes from the newly built prefix (like with libiconv)
so, temporarily add flags for the target prefix.
scripts/bootstrap-prefix.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 40eaede..8315397 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1183,6 +1183,8 @@ bootstrap_stage3() {
configure_toolchain || return 1
export CONFIG_SHELL="${ROOT}"/tmp/bin/bash
+ export CPPFLAGS="-I${ROOT}/usr/include"
+ export LDFLAGS="-I${ROOT}/usr/lib"
unset CC CXX
emerge_pkgs() {