summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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 \