]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (libtool_args): Get all arguments properly enclosed in
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Sat, 18 Dec 1999 06:27:21 +0000 (06:27 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 18 Dec 1999 06:27:21 +0000 (06:27 +0000)
quotes and backslash-protected when needed.

ChangeLog
ltmain.in

index 83c9cba4b21c94dd097a7737d99500ff7b697c7c..b19bdf2f4401a800d41072907b26336b484f3c7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-12-18  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * ltmain.in (libtool_args): Get all arguments properly enclosed in
+       quotes and backslash-protected when needed.
+
 1999-12-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * ltdl.m4: Renamed from...
index e3877aa1a51595b6a887b3d87cc7e8089f67c16d..4ea98ad9e78aafbbbe502c6284120d825b29cb4a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -728,7 +728,13 @@ compiler."
     while test $# -gt 0; do
       arg="$1"
       shift
-      libtool_args="$libtool_args $arg"
+      case "$arg" in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
+       qarg=\"`echo "X$arg" | $Xsed -e "$sed_quote_subst"`\"
+       ;;
+      *) qarg=$arg ;;
+      esac
+      libtool_args="$libtool_args $qarg"
 
       # If the previous option needs an argument, assign it.
       if test -n "$prev"; then