aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2012-02-13 21:47:25 +0100
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-02-13 21:47:25 +0100
commite1899ce97cbb906759657838381707b47bf0a018 (patch)
tree6b90558214f6ab4f3d7407a705fc95a60c311aee /scripts
parentad5d84d544465af804bf75ac6af91079c5b9dcb9 (diff)
downloadcrosstool-ng-e1899ce97cbb906759657838381707b47bf0a018.tar.gz
crosstool-ng-e1899ce97cbb906759657838381707b47bf0a018.tar.bz2
crosstool-ng-e1899ce97cbb906759657838381707b47bf0a018.zip
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
index e4bb354d..e3173eb6 100644
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -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"