aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-08 14:29:50 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-08 14:29:50 -0700
commit7899ac0b991dade942d0ac64472a857ac020e2bc (patch)
treea6efb5c0c93187459eb98cac52937ee8cdaf7295
parent996fa9a2e36df7f88a2dda2393b35942b0e5120e (diff)
sysroot needed by makedeps and other make targets
* We previously removed the SYSROOT declaration believing it to be a candidate for the coming build-config command. It turns out that this not the case. While SYSROOT can be set as a build-config directive, it is not optional for builder to function.
-rwxr-xr-xbuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/build b/build
index 939f91c..bc39269 100755
--- a/build
+++ b/build
@@ -198,6 +198,11 @@ export BUILDER_CFGDIR BUILDER_PKGDIR BUILDER_SRCDIR
export BUILDER_ATFDIR BUILDER_LIBDIR BUILDER_TOPDIR
export BUILDER_TMPDIR
+# The default SYSROOT .. Much of the toolchain already obeys SYSROOT .. we
+# aren't setting a policy so much as obeying one.
+SYSROOT="${SYSROOT:-${BUILDER_TOPDIR}/sysroot}"
+export SYSROOT
+
# We save the pre-config PATH as BUILDER_PATH to be used by downstream tools.
# FIXME detect prefixing BUILDER_LIBDIR onto PATH multiple times?
BUILDER_PATH="${BUILDER_LIBDIR}:${PATH}"