Lines Matching +full:set +full:- +full:env
17 # This file was contributed by John David Anglin (dave.anglin@nrc-cnrc.gc.ca)
19 set orig_environment_saved 0
20 set orig_ld_library_path_saved 0
21 set orig_ld_run_path_saved 0
22 set orig_shlib_path_saved 0
23 set orig_ld_libraryn32_path_saved 0
24 set orig_ld_library64_path_saved 0
25 set orig_ld_library_path_32_saved 0
26 set orig_ld_library_path_64_saved 0
27 set orig_dyld_library_path_saved 0
28 set orig_path_saved 0
57 # Set the relocated compiler prefix, but only if the user hasn't specified one.
58 if { [info exists GCC_EXEC_PREFIX] && ![info exists env(GCC_EXEC_PREFIX)] } {
62 # Setting the ld library path causes trouble when testing cross-compilers.
68 global env
70 set orig_environment_saved 1
73 if [info exists env(LD_LIBRARY_PATH)] {
74 set orig_ld_library_path "$env(LD_LIBRARY_PATH)"
75 set orig_ld_library_path_saved 1
77 if [info exists env(LD_RUN_PATH)] {
78 set orig_ld_run_path "$env(LD_RUN_PATH)"
79 set orig_ld_run_path_saved 1
81 if [info exists env(SHLIB_PATH)] {
82 set orig_shlib_path "$env(SHLIB_PATH)"
83 set orig_shlib_path_saved 1
85 if [info exists env(LD_LIBRARYN32_PATH)] {
86 set orig_ld_libraryn32_path "$env(LD_LIBRARYN32_PATH)"
87 set orig_ld_libraryn32_path_saved 1
89 if [info exists env(LD_LIBRARY64_PATH)] {
90 set orig_ld_library64_path "$env(LD_LIBRARY64_PATH)"
91 set orig_ld_library64_path_saved 1
93 if [info exists env(LD_LIBRARY_PATH_32)] {
94 set orig_ld_library_path_32 "$env(LD_LIBRARY_PATH_32)"
95 set orig_ld_library_path_32_saved 1
97 if [info exists env(LD_LIBRARY_PATH_64)] {
98 set orig_ld_library_path_64 "$env(LD_LIBRARY_PATH_64)"
99 set orig_ld_library_path_64_saved 1
101 if [info exists env(DYLD_LIBRARY_PATH)] {
102 set orig_dyld_library_path "$env(DYLD_LIBRARY_PATH)"
103 set orig_dyld_library_path_saved 1
105 if [info exists env(PATH)] {
106 set orig_path "$env(PATH)"
107 set orig_path_saved 1
111 # We need to set ld library path in the environment. Currently,
112 # unix.exp doesn't set the environment correctly for all systems.
114 # program. We also need the environment set for compilations, etc.
116 # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
118 # (for the 64-bit ABI). The same applies to Darwin (DYLD_LIBRARY_PATH),
120 # and HP-UX (SHLIB_PATH). In some cases, the variables are independent
136 # The default shared library dynamic path search for 64-bit
137 # HP-UX executables searches LD_LIBRARY_PATH before SHLIB_PATH.
138 # LD_LIBRARY_PATH isn't used for 32-bit executables. Thus, we
139 # set LD_LIBRARY_PATH and SHLIB_PATH as if they were independent.
178 if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } {
186 verbose -log "set_ld_library_path_env_vars: ld_library_path=$ld_library_path"
220 } elseif [info exists env(LD_LIBRARY_PATH)] {
225 } elseif [info exists env(LD_RUN_PATH)] {
230 } elseif [info exists env(SHLIB_PATH)] {
235 } elseif [info exists env(LD_LIBRARYN32_PATH)] {
240 } elseif [info exists env(LD_LIBRARY64_PATH)] {
245 } elseif [info exists env(LD_LIBRARY_PATH_32)] {
250 } elseif [info exists env(LD_LIBRARY_PATH_64)] {
255 } elseif [info exists env(DYLD_LIBRARY_PATH)] {
260 } elseif [info exists env(PATH)] {
272 if { [ istarget *-*-darwin* ] } {
273 set shlib_ext "dylib"
274 } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } {
275 set shlib_ext "dll"
276 } elseif { [ istarget hppa*-*-hpux* ] } {
277 set shlib_ext "sl"
279 set shlib_ext "so"