diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-05-13 21:19:50 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-05-13 21:19:50 +0000 |
commit | 7c86ed394a3a30932d9aa8efb96e3a982f2b6547 (patch) | |
tree | dae084707fafdbb6eeb70f33d68075053a757bfc | |
parent | 6fc49d288b851bc5732d85155af3fac92e7906e3 (diff) | |
download | gdb-7c86ed394a3a30932d9aa8efb96e3a982f2b6547.zip gdb-7c86ed394a3a30932d9aa8efb96e3a982f2b6547.tar.gz gdb-7c86ed394a3a30932d9aa8efb96e3a982f2b6547.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ltmain.sh | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +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. + Fri May 12 11:23:17 2000 Jeffrey A Law (law@cygnus.com) * config.sub (basic_machine): Recognize hppa64 as a valid cpu type. @@ -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 |