build system: fix broken CONFIG_SYSROOT handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
bf6343796e
commit
39c2cb2e93
@ -104,7 +104,9 @@ else
|
|||||||
LDLIBS += m
|
LDLIBS += m
|
||||||
endif
|
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)
|
CFLAGS += --sysroot=$(CONFIG_SYSROOT)
|
||||||
export SYSROOT=$(CONFIG_SYSROOT)
|
export SYSROOT=$(CONFIG_SYSROOT)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user