* ltmain.in (-Wl, -Wc): Make commas argument separators, just like

in gcc.
This commit is contained in:
Alexandre Oliva 1999-12-18 07:02:40 +00:00 committed by Alexandre Oliva
parent 02772c8400
commit 811327bc67
2 changed files with 30 additions and 17 deletions

View File

@ -1,5 +1,8 @@
1999-12-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 1999-12-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* ltmain.in (-Wl, -Wc): Make commas argument separators, just like
in gcc.
* ltmain.in (libtool_args): Get all arguments properly enclosed in * ltmain.in (libtool_args): Get all arguments properly enclosed in
quotes and backslash-protected when needed. quotes and backslash-protected when needed.

View File

@ -1045,26 +1045,36 @@ compiler."
;; ;;
-Wc,*) -Wc,*)
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
case "$arg" in IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) for flag in $arg; do
arg="\"$arg\"" IFS="$save_ifs"
;; case "$flag" in
esac *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
flag=`$echo "X$arg" | $Xsed -e 's/^-Wc,//'` flag="\"$flag\""
compiler_flags="$compiler_flags $flag" ;;
esac
compiler_flags="$compiler_flags $flag"
done
IFS="$save_ifs"
continue
;; ;;
-Wl,*) -Wl,*)
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
case "$arg" in IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) for flag in $arg; do
arg="\"$arg\"" IFS="$save_ifs"
;; case "$flag" in
esac *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
flag=`$echo "X$arg" | $Xsed -e 's/^-Wl,//'` flag="\"$flag\""
linker_flags="$linker_flags $flag" ;;
compiler_flags="$compiler_flags $wl$flag" esac
compiler_flags="$compiler_flags $wl$flag"
linker_flags="$linker_flags $flag"
done
IFS="$save_ifs"
continue
;; ;;
-Xcompiler) -Xcompiler)