From: Peter Rosin Date: Sun, 19 Aug 2012 20:14:13 +0000 (+0200) Subject: libtool: quote progpath properly X-Git-Tag: v2.4.2.418~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ed0187c1c6cc3519188bc47d5ed0ff85f2d950;p=thirdparty%2Flibtool.git 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. --- diff --git a/THANKS b/THANKS index 84cb6c9d5..24f1c9193 100644 --- 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 diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 30f99f4f5..48e259b64 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 @@ -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=