>From c50b8d27d5832ca1c962bf3dec46c1b85eff5bad Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Sun, 19 Aug 2012 22:06:06 +0200 Subject: [PATCH] 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. --- THANKS | 1 + build-aux/ltmain.m4sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/THANKS b/THANKS index 84cb6c9..24f1c91 100644 --- a/THANKS +++ b/THANKS @@ -70,6 +70,7 @@ Alan Hourihane address@hidden Alexei Sheplyakov address@hidden Alon Bar-Lev address@hidden + Andreas Schiffler address@hidden Andreas Schwab address@hidden Andrey Slepuhin address@hidden Aneesh Kumar K.V address@hidden diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 30f99f4..968b727 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= -- 1.7.9