]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Place parens around a generated relink_command
authorMo DeJong <supermo@bayarea.net>
Thu, 15 Nov 2001 00:59:07 +0000 (00:59 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 15 Nov 2001 00:59:07 +0000 (00:59 +0000)
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.

ChangeLog
ltmain.in

index b51a1f1c5f6488f5c2bc4d4ccb4fe4f7ba70740f..747f5f48837bd63b0871b9021e93a6d393444695 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index ffd7f27eb0a1b0793426ec1def9d043052d65f25..483d794a0e957aa57c3e4dc267d4021d7401742a 100644 (file)
--- 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.