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:
Yann E. MORIN" 2012-02-13 21:47:25 +01:00 committed by Yann E. MORIN"
parent ad5d84d544
commit e1899ce97c

View File

@ -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"