mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-18 00:06:04 +00:00
libc/glibc: do not consume parameters when parsing them
Currently, there are two constructs used to parse arguments in glibc backends, one that consumes args as they are parsed, and one that does not. Always use the construct that does not eat args as they are parsed. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
ad5d84d544
commit
e1899ce97c
@ -197,10 +197,10 @@ do_libc_backend_once() {
|
||||
local glibc_cflags
|
||||
local float_extra
|
||||
local endian_extra
|
||||
local arg
|
||||
|
||||
while [ $# -ne 0 ]; do
|
||||
eval "${1// /\\ }"
|
||||
shift
|
||||
for arg in "$@"; do
|
||||
eval "${arg// /\\ }"
|
||||
done
|
||||
|
||||
CT_DoLog EXTRA "Configuring C library"
|
||||
|
Loading…
x
Reference in New Issue
Block a user