diff options
author | H.J. Lu <hjl@lucon.org> | 2000-05-13 21:19:50 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2000-05-13 21:19:50 +0000 |
commit | f3d24bdd7ea0464e8e49d7d605b2542e83173d7c (patch) | |
tree | 203395ae88e75592ca699686ff97faddbf443621 /ltmain.sh | |
parent | 7b64e9b57939cb23f7449ac1c817acd3b75c144b (diff) | |
download | binutils-redhat-f3d24bdd7ea0464e8e49d7d605b2542e83173d7c.tar.gz |
2000-05-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>cygwin-1_1_1
* ltmain.sh: Preserve in relink_command any environment
variables that may affect the linker behavior.
Diffstat (limited to 'ltmain.sh')
-rw-r--r-- | ltmain.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |