OLD | NEW |
1 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | 1 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. |
2 | 2 |
3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
6 # (at your option) any later version. | 6 # (at your option) any later version. |
7 # | 7 # |
8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 global orig_ld_run_path | 206 global orig_ld_run_path |
207 global orig_shlib_path | 207 global orig_shlib_path |
208 global orig_ld_libraryn32_path | 208 global orig_ld_libraryn32_path |
209 global orig_ld_library64_path | 209 global orig_ld_library64_path |
210 global orig_ld_library_path_32 | 210 global orig_ld_library_path_32 |
211 global orig_ld_library_path_64 | 211 global orig_ld_library_path_64 |
212 global orig_dyld_library_path | 212 global orig_dyld_library_path |
213 global orig_gcc_exec_prefix | 213 global orig_gcc_exec_prefix |
214 global env | 214 global env |
215 | 215 |
216 if { $orig_environment_saved == 0 } { | |
217 return | |
218 } | |
219 | |
220 if { $orig_gcc_exec_prefix_saved } { | 216 if { $orig_gcc_exec_prefix_saved } { |
221 setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix" | 217 setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix" |
222 } elseif [info exists env(GCC_EXEC_PREFIX)] { | 218 } elseif [info exists env(GCC_EXEC_PREFIX)] { |
223 unsetenv GCC_EXEC_PREFIX | 219 unsetenv GCC_EXEC_PREFIX |
224 } | 220 } |
225 | 221 |
| 222 if { $orig_environment_saved == 0 } { |
| 223 return |
| 224 } |
| 225 |
226 if { $orig_ld_library_path_saved } { | 226 if { $orig_ld_library_path_saved } { |
227 setenv LD_LIBRARY_PATH "$orig_ld_library_path" | 227 setenv LD_LIBRARY_PATH "$orig_ld_library_path" |
228 } elseif [info exists env(LD_LIBRARY_PATH)] { | 228 } elseif [info exists env(LD_LIBRARY_PATH)] { |
229 unsetenv LD_LIBRARY_PATH | 229 unsetenv LD_LIBRARY_PATH |
230 } | 230 } |
231 if { $orig_ld_run_path_saved } { | 231 if { $orig_ld_run_path_saved } { |
232 setenv LD_RUN_PATH "$orig_ld_run_path" | 232 setenv LD_RUN_PATH "$orig_ld_run_path" |
233 } elseif [info exists env(LD_RUN_PATH)] { | 233 } elseif [info exists env(LD_RUN_PATH)] { |
234 unsetenv LD_RUN_PATH | 234 unsetenv LD_RUN_PATH |
235 } | 235 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } { | 277 } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } { |
278 set shlib_ext "dll" | 278 set shlib_ext "dll" |
279 } elseif { [ istarget hppa*-*-hpux* ] } { | 279 } elseif { [ istarget hppa*-*-hpux* ] } { |
280 set shlib_ext "sl" | 280 set shlib_ext "sl" |
281 } else { | 281 } else { |
282 set shlib_ext "so" | 282 set shlib_ext "so" |
283 } | 283 } |
284 return $shlib_ext | 284 return $shlib_ext |
285 } | 285 } |
286 | 286 |
OLD | NEW |