diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2012-02-13 21:51:48 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-02-13 21:51:48 +0100 |
commit | e9de7fc0afb19405838add0b3846c87982d5aa64 (patch) | |
tree | 01cc4142eac033a99ce73c6087e5aca38005012f /scripts | |
parent | e1899ce97cbb906759657838381707b47bf0a018 (diff) | |
download | crosstool-ng-e9de7fc0afb19405838add0b3846c87982d5aa64.tar.gz crosstool-ng-e9de7fc0afb19405838add0b3846c87982d5aa64.tar.bz2 crosstool-ng-e9de7fc0afb19405838add0b3846c87982d5aa64.zip |
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.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index ab84e8b6..a584bcf9 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 |