From e9de7fc0afb19405838add0b3846c87982d5aa64 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 13 Feb 2012 21:51:48 +0100 Subject: cc/gcc: do not consume parameters when parsing them The current construct consumes the parameters while we parse them. Change this to a construct that does not consume the parameters. This has no impact on gcc, but is done for homogeneity with other components (eg. glibc). Signed-off-by: "Yann E. MORIN" diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index ab84e8b..a584bcf 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -122,10 +122,10 @@ do_cc_core() { local -a extra_config local -a core_LDFLAGS local -a core_targets + local arg - while [ $# -ne 0 ]; do - eval "${1// /\\ }" - shift + for arg in "$@"; do + eval "${arg// /\\ }" done lang_opt=c -- cgit v0.10.2-6-g49f6