This repository was archived by the owner on Jun 27, 2019. It is now read-only.
Commit d97adb1
committed
build: properly unquote CONFIG_CFLAGS and CONFIG_LDFLAGS
When using CONFIG_CFLAGS containing spaces, it would be appended to the
command line keeping the quotes. The issue is that `patsusbt` operates
on words, but not assuming quotes mean anything.
$(patsubst "%",%,$(CONFIG_CFLAGS))
was evaluating
"-Wno-undef
-Wno-missing-include-dirs"
and neither matched.
Using two patsubst, one for "% and another for %" works in some cases
but would break in the case we had quotes inside one of the flags.
This patch uses `echo`, and ensures that it is called only once for each
flag by creating the UNQUOTED_ variables using `:=` (single assignment).
Signed-off-by: Caio Marcelo de Oliveira Filho <[email protected]>1 parent 69f00c9 commit d97adb1
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
0 commit comments