diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-12-24 23:29:39 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-12-24 23:29:39 +0000 |
commit | 0f6bfdafdbf83f687a5d7555c3df8038530305da (patch) | |
tree | dd26a38cc1d121071c22912507142977240910f9 /libstdc++ | |
parent | 65fc4db1238d8036691b7df7b7a78fc6a527a359 (diff) | |
download | gcc-0f6bfdafdbf83f687a5d7555c3df8038530305da.tar.gz |
* lib/libstdc++.exp (test_libstdc++): Set LD_LIBRARY_PATH
and SHLIB_PATH appropriately.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++/testsuite/lib/libstdc++.exp | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libstdc++/testsuite/ChangeLog b/libstdc++/testsuite/ChangeLog index 886f8b0a685..84d8290c719 100644 --- a/libstdc++/testsuite/ChangeLog +++ b/libstdc++/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 25 00:34:03 1997 Jeffrey A Law (law@cygnus.com) + + * lib/libstdc++.exp (test_libstdc++): Set LD_LIBRARY_PATH + and SHLIB_PATH appropriately. + Wed Sep 3 09:39:36 1997 Jeffrey A Law (law@cygnus.com) * lib/libstdc++.exp: Remove libg++_link_flags. diff --git a/libstdc++/testsuite/lib/libstdc++.exp b/libstdc++/testsuite/lib/libstdc++.exp index 91cd83025b9..f9bcdf43602 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" } |