[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for fix libtool when install does a relink.
From: |
Mo DeJong |
Subject: |
Re: Patch for fix libtool when install does a relink. |
Date: |
Sun, 23 Sep 2001 14:31:41 -0700 |
...
> 2001-09-22 Mo DeJong <address@hidden>
>
> * ltmain.in: Save the current working directory before
> running a .la file's relink_command in case it changes
> the current working directory.
Here is another possible fix for this same problem. It might
work better than my previous patch.
2001-09-23 Mo DeJong <address@hidden>
* 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.
Index: ltmain.in
===================================================================
RCS file: /cvs/libtool/ltmain.in,v
retrieving revision 1.278
diff -u -r1.278 ltmain.in
--- ltmain.in 2001/09/22 13:39:21 1.278
+++ ltmain.in 2001/09/23 21:19:39
@@ -4011,7 +4011,7 @@
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
@@ -4355,7 +4355,7 @@
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.