* coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
[deliverable/binutils-gdb.git] / ltmain.sh
index c32939ee8333d4a09f9f90078d47b0cbb8a4e8db..a171502c77f33262f5751449730986ad2beb55a3 100644 (file)
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -2779,6 +2779,11 @@ static const void *lt_preloaded_setup() {
 
       # 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
 
This page took 0.029474 seconds and 4 git commands to generate.