diff options
-rw-r--r-- | Makefile.flags | 4 |
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 | |||
104 | LDLIBS += m | 104 | LDLIBS += m |
105 | endif | 105 | endif |
106 | 106 | ||
107 | ifneq ($(CONFIG_SYSROOT),) | 107 | # Note: both "" (string consisting of two quote chars) and empty string |
108 | # are possible, and should be skipped below. | ||
109 | ifneq ($(subst "",,$(CONFIG_SYSROOT)),) | ||
108 | CFLAGS += --sysroot=$(CONFIG_SYSROOT) | 110 | CFLAGS += --sysroot=$(CONFIG_SYSROOT) |
109 | export SYSROOT=$(CONFIG_SYSROOT) | 111 | export SYSROOT=$(CONFIG_SYSROOT) |
110 | endif | 112 | endif |