From 3dfcf0abf62fc9658b211efc474ffe79a69a081e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 12 Nov 2012 16:23:59 -0500 Subject: Fix custom sysroot configuration. --- 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 \ -- cgit v0.9.1