This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for ltmain.sh


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
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]