Commit a68d340
configure: fix parsing args if values contain "="
Currently, when the value of an option passed to the configure script as argument contains an equal sign "=", the part of the string up to the second equal sign is used as option. This commit changes how the string is split, so that always only the part up to the first equal sign is interpreted as option.
"${var%=*}" removes everything from the last equal sign, "${var%%=*}" removes everything from the first equal sign.
This allows to pass CFLAGS, which usually contain equal signs, like
"--cflags=-march=armv6 -mfloat-abi=hard -mfpu=vfp"
For reference: #1665
Signed-off-by: MichaIng <micha@dietpi.com>1 parent b100585 commit a68d340
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments