diff options
author | P. 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) |
commit | 3dfcf0abf62fc9658b211efc474ffe79a69a081e (patch) | |
tree | 125eadc4ad126a56949fb1ed85033792fd76d5a4 /build | |
parent | e88ced3381a79d1d33c9f0e06c8f95f80940905f (diff) |
Fix custom sysroot configuration.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 \ |