From: Denys Vlasenko Date: Wed, 7 Mar 2012 23:20:01 +0000 (+0100) Subject: build system: fix broken CONFIG_SYSROOT handling X-Git-Tag: 1_20_0~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5;p=oweals%2Fbusybox.git build system: fix broken CONFIG_SYSROOT handling Signed-off-by: Denys Vlasenko --- diff --git a/Makefile.flags b/Makefile.flags index 68dfa57ec..92aae6fb5 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