diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 04:39:41 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 04:39:41 +0000 |
commit | c0e3142700d37457c294280f86353edce3c19534 (patch) | |
tree | 01527763d9092da3909d80b1b0942d2439662fc2 /libmudflap | |
parent | 92ebe7d37e9c6695bc5060d58f199eab38e9cc41 (diff) | |
download | gcc-c0e3142700d37457c294280f86353edce3c19534.tar.gz |
* lib/target-libpath.exp: New file defining set_ld_library_path_env_vars
and restore_ld_library_path_env_vars.
* g++.dg/compat/compat.exp, lib/g++.exp, lib/gcc-dg.exp,
lib/gfortran.exp, lib/objc.exp, lib/treelang.exp: Use new procs.
* ada/acats/run_acats (LD_LIBRARY_PATH): Add previous LD_LIBRARY_PATH
to LD_LIBRARY_PATH. Export LD_LIBRARY_PATH.
* testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libjava.exp,
testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 4 | ||||
-rw-r--r-- | libmudflap/testsuite/lib/libmudflap.exp | 31 |
2 files changed, 21 insertions, 14 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 880064a2687..969f9294462 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,7 @@ +2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp. + 2004-11-23 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in, configure, aclocal.m4: Regenerate with automake 1.9.3. diff --git a/libmudflap/testsuite/lib/libmudflap.exp b/libmudflap/testsuite/lib/libmudflap.exp index 83544bb1aac..8c604e1bc86 100644 --- a/libmudflap/testsuite/lib/libmudflap.exp +++ b/libmudflap/testsuite/lib/libmudflap.exp @@ -17,22 +17,27 @@ # Define libmudflap callbacks for dg.exp. # This file is a copy of libstdc++-v3's dejagnu driver, with minor changes. +# Useful hook: if ${hostname}_init exists, it will be called, almost +# the last thing before testing begins. This can be defined in, e.g., +# ~/.dejagnurc or $DEJAGNU. + +proc load_gcc_lib { filename } { + global srcdir + load_file $srcdir/../../gcc/testsuite/lib/$filename +} + load_lib mfdg.exp load_lib libgloss.exp - +load_gcc_lib target-libpath.exp proc libmudflap-init { language } { - global srcdir - global outdir - global blddir - global cxx + global env + global srcdir outdir blddir objdir tool_root_dir + global cxx cxxflags global includes global libs - global cxxflags - global objdir global gluefile wrap_flags global ld_library_path - global tool_root_dir switch $language { "c" { set cxx [find_gcc] } @@ -96,12 +101,10 @@ proc libmudflap-init { language } { global add_flags append add_flags " $mfconfig_libs" - verbose -log "ld_library_path=$ld_library_path" - setenv LD_LIBRARY_PATH $ld_library_path - setenv SHLIB_PATH $ld_library_path - setenv LD_RUN_PATH $ld_library_path - setenv LD_LIBRARYN32_PATH $ld_library_path - setenv LD_LIBRARY64_PATH $ld_library_path + set_ld_library_path_env_vars + if [info exists env(LD_LIBRARY_PATH)] { + verbose -log "LD_LIBRARY_PATH = $env(LD_LIBRARY_PATH)" + } if { [target_info needs_status_wrapper]!=""} { file delete ${objdir}/testglue.o; |