From: Mo DeJong Date: Thu, 15 Nov 2001 00:59:07 +0000 (+0000) Subject: * ltmain.in: Place parens around a generated relink_command X-Git-Tag: release-1-4d~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf264c44ca16ca093356640a0d78ceabb3e7075f;p=thirdparty%2Flibtool.git * ltmain.in: Place parens around a generated relink_command so it is run is a subshell. This avoids an install error where libtool ended up in the wrong directory after relinking a .la file. --- diff --git a/ChangeLog b/ChangeLog index b51a1f1c5..747f5f488 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-11-15 Mo DeJong + + * ltmain.in: Place parens around a generated relink_command + so it is run is a subshell. This avoids an install error + where libtool ended up in the wrong directory after + relinking a .la file. + 2001-10-31 Raja R Harinath * configure.ac (pkgdatadir): Move the invocation of AC_INIT_AUTOMAKE diff --git a/ltmain.in b/ltmain.in index ffd7f27eb..483d794a0 100644 --- a/ltmain.in +++ b/ltmain.in @@ -4023,7 +4023,7 @@ static const void *lt_preloaded_setup() { relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done - relink_command="cd `pwd`; $relink_command" + relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi @@ -4367,7 +4367,7 @@ fi\ fi done # Quote the link command for shipping. - relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args" + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` # Only create the output if not a dry run.