Commit 00c7e24f by H.J. Lu Committed by H.J. Lu

(restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX to its original value...

2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

	(restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX
	to its original value, or unset if it was not defined.

From-SVN: r145400
parent 3f293bd0
2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
(restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX
to its original value, or unset if it was not defined.
2009-03-31 Jason Merrill <jason@redhat.com> 2009-03-31 Jason Merrill <jason@redhat.com>
* g++.old-deja/g++.other/using9.C: Add expected errors. * g++.old-deja/g++.other/using9.C: Add expected errors.
......
...@@ -213,16 +213,16 @@ proc restore_ld_library_path_env_vars { } { ...@@ -213,16 +213,16 @@ proc restore_ld_library_path_env_vars { } {
global orig_gcc_exec_prefix global orig_gcc_exec_prefix
global env global env
if { $orig_environment_saved == 0 } {
return
}
if { $orig_gcc_exec_prefix_saved } { if { $orig_gcc_exec_prefix_saved } {
setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix" setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix"
} elseif [info exists env(GCC_EXEC_PREFIX)] { } elseif [info exists env(GCC_EXEC_PREFIX)] {
unsetenv GCC_EXEC_PREFIX unsetenv GCC_EXEC_PREFIX
} }
if { $orig_environment_saved == 0 } {
return
}
if { $orig_ld_library_path_saved } { if { $orig_ld_library_path_saved } {
setenv LD_LIBRARY_PATH "$orig_ld_library_path" setenv LD_LIBRARY_PATH "$orig_ld_library_path"
} elseif [info exists env(LD_LIBRARY_PATH)] { } elseif [info exists env(LD_LIBRARY_PATH)] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment