diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-28 19:42:12 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-28 19:42:12 +0000 |
commit | f0d71e03122177bf80f27a149b74e17b6bd5d762 (patch) | |
tree | d718f82ccada1441bb9b91b548e8a0236145c809 /libstdc++-v3/testsuite | |
parent | d5e0afe2f0803922958372c05b69db0512caf7bb (diff) |
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use
correct multilib builddir.
Properly locate libgcc_s.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45864 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp index 6250403f433..6c0cb4abe14 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp @@ -44,10 +44,11 @@ proc libstdc++-v3-init { args } { global objdir global gluefile wrap_flags global ld_library_path + global tool_root_dir - set blddir [lookfor_file $outdir libstdc++-v3] + set blddir [lookfor_file [get_multilibs] libstdc++-v3] - # By default, we assume we want to run program images. + # By default, we assume we want to run program images. global dg-do-what-default set dg-do-what-default run @@ -56,9 +57,15 @@ proc libstdc++-v3-init { args } { libstdc++-v3-copy-files [glob -nocomplain "$srcdir/*/*.txt"] $outdir # set LD_LIBRARY_PATH so that libgcc_s, libstdc++ binaries can be found. - set gccpath [get_multilibs] + # locate libgcc.a so we don't need to account for different values of + # SHLIB_EXT on different platforms + set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a] + if {$gccdir != ""} { + set gccdir [file dirname $gccdir] + } + set ld_library_path "." - append ld_library_path ":${gccpath}../gcc" + append ld_library_path ":${gccdir}" append ld_library_path ":${blddir}/src/.libs" # Do a bunch of handstands and backflips for cross compiling and |