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>
This commit is contained in:
Yann E. MORIN" 2012-02-13 21:51:48 +01:00 committed by Yann E. MORIN"
parent e1899ce97c
commit e9de7fc0af

View File

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