Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-14 01:19:50 +0400
committerH.J. Lu <hjl.tools@gmail.com>2000-05-14 01:19:50 +0400
commit8649ded0ceee1368136ad69a30740f0d207e69da (patch)
tree66d7271e99b5efb270e7880a02132c5cedeb3d74 /ltmain.sh
parente6342d0038a24548780dbe0f37519c4ec92c5f30 (diff)
2000-05-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* ltmain.sh: Preserve in relink_command any environment variables that may affect the linker behavior.
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ltmain.sh b/ltmain.sh
index c32939ee8..a171502c7 100644
--- 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