summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-12 16:23:59 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-12 16:23:59 (EST)
commit3dfcf0abf62fc9658b211efc474ffe79a69a081e (patch)
tree125eadc4ad126a56949fb1ed85033792fd76d5a4
parente88ced3381a79d1d33c9f0e06c8f95f80940905f (diff)
Fix custom sysroot configuration.
-rwxr-xr-xbuild5
1 files changed, 1 insertions, 4 deletions
diff --git a/build b/build
index 9a575f1..fa819d8 100755
--- a/build
+++ b/build
@@ -1,7 +1,6 @@
#! /usr/bin/make -f
CFLAGS = -g -O2
-OPK_SYSROOT = /
nop:
@:
@@ -13,8 +12,6 @@ configure:
# ld/Makefile's "configure-host" target.
# - If we're building a cross ld, search only target-specific library
# paths.
- # * TODO: Should the sysroot be handled differently for cross binutils?
- # - Should there be build and host system roots?
# * Use shared BFD and opcodes libraries for all utilities.
# - That is, dynamically link the utilities against a single copy of the
# BFD and opcodes libraries.
@@ -33,7 +30,7 @@ configure:
fi; \
CFLAGS='$(CFLAGS)' host_configargs="--with-lib-path=$${LIB_PATH}" \
oh-autoconfigure -B "build-$${target}" -t "$${target}" -- \
- --with-sysroot='$(OPK_SYSROOT)' \
+ --with-sysroot="$${OPK_SYSROOT:-/}" \
--program-transform-name="s&^&$${target}-&" \
--enable-shared --disable-multilib \
--enable-plugins --disable-nls \