This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
A patch for ltmain.sh
- To: binutils at sourceware dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Subject: A patch for ltmain.sh
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Sat, 13 May 2000 14:21:30 -0700
- Cc: gdb-patches at sourceware dot cygnus dot com
I checked in the following patch. Let me know if there are any
problems.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Index: ChangeLog
from Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* ltmain.sh: Preserve in relink_command any environment variables
that may affect the linker behavior.
Index: ltmain.sh
===================================================================
RCS file: /cvs/src/src/ltmain.sh,v
retrieving revision 1.2
diff -u -r1.2 ltmain.sh
--- ltmain.sh 2000/02/27 16:46:19 1.2
+++ ltmain.sh 2000/03/11 22:44:48
@@ -2779,6 +2779,11 @@
# Quote the relink command for shipping.
if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ variables_saved_for_relink="GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+ for var in $variables_saved_for_relink; do
+ relink_command="$var=\""`eval \$echo \"X'$'$var\" | $Xsed -e "$sed_quote_subst"`"\"; export $var; $relink_command"
+ done
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
fi