diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-12-24 23:29:39 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-24 16:29:39 -0700 |
commit | df3b6ab30ea4e3310b79eadb2c41fb6243d3b4aa (patch) | |
tree | dd26a38cc1d121071c22912507142977240910f9 /libstdc++/testsuite/lib | |
parent | 556c714b3d1e4350f9b5e747f879cef4775adb93 (diff) | |
download | gcc-df3b6ab30ea4e3310b79eadb2c41fb6243d3b4aa.zip gcc-df3b6ab30ea4e3310b79eadb2c41fb6243d3b4aa.tar.gz gcc-df3b6ab30ea4e3310b79eadb2c41fb6243d3b4aa.tar.bz2 |
libstdc++.exp (test_libstdc++): Set LD_LIBRARY_PATH and SHLIB_PATH appropriately.
* lib/libstdc++.exp (test_libstdc++): Set LD_LIBRARY_PATH
and SHLIB_PATH appropriately.
From-SVN: r17234
Diffstat (limited to 'libstdc++/testsuite/lib')
-rw-r--r-- | libstdc++/testsuite/lib/libstdc++.exp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++/testsuite/lib/libstdc++.exp b/libstdc++/testsuite/lib/libstdc++.exp index 91cd830..f9bcdf4 100644 --- a/libstdc++/testsuite/lib/libstdc++.exp +++ b/libstdc++/testsuite/lib/libstdc++.exp @@ -73,6 +73,23 @@ proc test_libstdc++ { options srcfile compile_args inpfile resultfile exec_args verbose "using LIBSTDCPP = $libstdcpp" 2 set args "" + + # Basically we want to build up a colon separated path list from + # the value of $libstdcpp. + + # First strip away any -L arguments. + regsub -all -- "-L" $libstdcpp "" ld_library_path + + # Then remove any -lstdc++ argument. + regsub -all -- " -lstdc.*" $ld_library_path "" ld_library_path + + # That's enough to make things work for the normal case. + # If we wanted to handle an arbitrary value of libstdcpp, + # then we'd have to do a lot more work. + + # Set variables the dynamic linker looks at. + setenv LD_LIBRARY_PATH $ld_library_path + setenv SHLIB_PATH $ld_library_path if { $compile_args != "" } { lappend args "additional_flags=$compile_args" } |