diff options
author | Denys Vlasenko | 2012-03-08 00:20:01 +0100 |
---|---|---|
committer | Denys Vlasenko | 2012-03-08 00:20:01 +0100 |
commit | 39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5 (patch) | |
tree | d4d381a2df3b8ec565813b87cbd8c82586d3df6b | |
parent | bf6343796e834183ff1b0c1b9416676e8488afa5 (diff) | |
download | busybox-39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5.zip busybox-39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5.tar.gz |
build system: fix broken CONFIG_SYSROOT handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | Makefile.flags | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index 68dfa57..92aae6f 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -104,7 +104,9 @@ else LDLIBS += m endif -ifneq ($(CONFIG_SYSROOT),) +# Note: both "" (string consisting of two quote chars) and empty string +# are possible, and should be skipped below. +ifneq ($(subst "",,$(CONFIG_SYSROOT)),) CFLAGS += --sysroot=$(CONFIG_SYSROOT) export SYSROOT=$(CONFIG_SYSROOT) endif |