* 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.
This commit is contained in:
Mo DeJong 2001-11-15 00:59:07 +00:00 committed by Gary V. Vaughan
parent 3de7e4a53d
commit bf264c44ca
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2001-11-15 Mo DeJong <supermo@bayarea.net>
* 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 <harinath@cs.umn.edu>
* configure.ac (pkgdatadir): Move the invocation of AC_INIT_AUTOMAKE

View File

@ -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.