summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2012-02-13 20:51:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-02-13 20:51:48 (GMT)
commite9de7fc0afb19405838add0b3846c87982d5aa64 (patch)
tree01cc4142eac033a99ce73c6087e5aca38005012f /scripts
parente1899ce97cbb906759657838381707b47bf0a018 (diff)
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" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh6
1 files changed, 3 insertions, 3 deletions
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