From: H.J. Lu Date: Wed, 19 Mar 2014 16:59:18 +0000 (+0000) Subject: Log environment variables in set_ld_library_path_env_vars X-Git-Tag: upstream/12.2.0~64197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=057be77f433a256f6e8392f2e841d735d1ba6157;p=platform%2Fupstream%2Fgcc.git Log environment variables in set_ld_library_path_env_vars GNU linker sets DT_RPATH from the environment variable LD_RUN_PATH. set_ld_library_path_env_vars sets a few environment variables including LD_RUN_PATH. This patch logs all environment variables set by set_ld_library_path_env_vars so that one can recreate the same executable as "make check" run. PR testsuite/60590 * lib/target-libpath.exp (set_ld_library_path_env_vars): Log LD_LIBRARY_PATH, LD_RUN_PATH, SHLIB_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and DYLD_LIBRARY_PATH. From-SVN: r208685 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 47b6e51..c40bddb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-03-19 H.J. Lu + + PR testsuite/60590 + * lib/target-libpath.exp (set_ld_library_path_env_vars): Log + LD_LIBRARY_PATH, LD_RUN_PATH, SHLIB_PATH, LD_LIBRARY_PATH_32, + LD_LIBRARY_PATH_64 and DYLD_LIBRARY_PATH. + 2014-03-19 Paolo Carlini PR c++/60332 diff --git a/gcc/testsuite/lib/target-libpath.exp b/gcc/testsuite/lib/target-libpath.exp index 603ed8a..1891088 100644 --- a/gcc/testsuite/lib/target-libpath.exp +++ b/gcc/testsuite/lib/target-libpath.exp @@ -155,7 +155,12 @@ proc set_ld_library_path_env_vars { } { setenv DYLD_LIBRARY_PATH "$ld_library_path" } - verbose -log "set_ld_library_path_env_vars: ld_library_path=$ld_library_path" + verbose -log "LD_LIBRARY_PATH=[getenv LD_LIBRARY_PATH]" + verbose -log "LD_RUN_PATH=[getenv LD_RUN_PATH]" + verbose -log "SHLIB_PATH=[getenv SHLIB_PATH]" + verbose -log "LD_LIBRARY_PATH_32=[getenv LD_LIBRARY_PATH_32]" + verbose -log "LD_LIBRARY_PATH_64=[getenv LD_LIBRARY_PATH_64]" + verbose -log "DYLD_LIBRARY_PATH=[getenv DYLD_LIBRARY_PATH]" } #######################################