]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: quote progpath properly
authorPeter Rosin <peda@lysator.liu.se>
Sun, 19 Aug 2012 20:14:13 +0000 (22:14 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Sun, 19 Aug 2012 20:14:13 +0000 (22:14 +0200)
Attempt to handle spaces in paths better.

* build-aux/ltmain.m4sh (func_mode_install, func_mode_link): Quote
$progpath.
* THANKS: Update.

THANKS
build-aux/ltmain.m4sh

diff --git a/THANKS b/THANKS
index 84cb6c9d531fc3c0b447bdc58890237020f0d6ee..24f1c919315058cdb42a7d81dee3c6a3aa30c2dd 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -70,6 +70,7 @@
   Alan Hourihane               alanh@fairlite.co.uk
   Alexei Sheplyakov            varg@theor.jinr.ru
   Alon Bar-Lev                 alon.barlev@gmail.com
+  Andreas Schiffler            aschiffler@ferzkopp.net
   Andreas Schwab               schwab@suse.de
   Andrey Slepuhin              pooh@msu.ru
   Aneesh Kumar K.V             kvaneesh@hotmail.com
index 30f99f4f56d1ad7b37daa5898aca725aead3cf8a..48e259b6446cf5b50f142e47931fb648cbb75690 100644 (file)
@@ -2449,7 +2449,7 @@ func_mode_install ()
     if test -n "$current_libdirs"; then
       # Maybe just do a dry run.
       $opt_dry_run && current_libdirs=" -n$current_libdirs"
-      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+      exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
     else
       exit $EXIT_SUCCESS
     fi
@@ -8506,7 +8506,7 @@ EOF
        fi
       done
       # Quote the link command for shipping.
-      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+      relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
       relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
       if test yes = "$hardcode_automatic"; then
        relink_command=