summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-03-08 00:20:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-03-08 00:20:01 +0100
commit39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5 (patch)
treed4d381a2df3b8ec565813b87cbd8c82586d3df6b
parentbf6343796e834183ff1b0c1b9416676e8488afa5 (diff)
downloadbusybox-w32-39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5.tar.gz
busybox-w32-39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5.tar.bz2
busybox-w32-39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5.zip
build system: fix broken CONFIG_SYSROOT handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Makefile.flags4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 68dfa57ec..92aae6fb5 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -104,7 +104,9 @@ else
104LDLIBS += m 104LDLIBS += m
105endif 105endif
106 106
107ifneq ($(CONFIG_SYSROOT),) 107# Note: both "" (string consisting of two quote chars) and empty string
108# are possible, and should be skipped below.
109ifneq ($(subst "",,$(CONFIG_SYSROOT)),)
108CFLAGS += --sysroot=$(CONFIG_SYSROOT) 110CFLAGS += --sysroot=$(CONFIG_SYSROOT)
109export SYSROOT=$(CONFIG_SYSROOT) 111export SYSROOT=$(CONFIG_SYSROOT)
110endif 112endif