diff options
author | Peter Rosin <peda@lysator.liu.se> | 2012-08-19 22:14:13 +0200 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 21:05:10 +0700 |
commit | d702946c65b309c389ae717a4d2d6fe158c3ee5f (patch) | |
tree | 79e2bb58bf75f4fea607474ebe04655240c01bb8 | |
parent | 8392cd263e847a22b2409c35bf03d7c9e68d2cd0 (diff) | |
download | libtool-d702946c65b309c389ae717a4d2d6fe158c3ee5f.tar.gz |
libtool: quote progpath properly
Attempt to handle spaces in paths better.
* build-aux/ltmain.m4sh (func_mode_install, func_mode_link): Quote
$progpath.
* THANKS: Update.
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | build-aux/ltmain.m4sh | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index c56cd266..77a0b5d1 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -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 @@ -8511,7 +8511,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= |