diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-17 15:00:04 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-17 15:00:04 +0000 |
commit | 449162d78a9766b57b15a3f5d6fbd7a56abd1b51 (patch) | |
tree | 6ceca80009b86080faebf8b8a3c4f4244790346e /gnu/usr.bin | |
parent | 97fd951e28abb02358d4986b1e309b2bef382464 (diff) |
- enable libstdc++ pthread regresses
- fix g++ regress so it can find libstdc++ in the objdir
okay espie@ kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/testsuite/lib/g++.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/gcc/gcc/testsuite/lib/g++.exp b/gnu/usr.bin/gcc/gcc/testsuite/lib/g++.exp index 749e1f1c2cd..7d07cba2943 100644 --- a/gnu/usr.bin/gcc/gcc/testsuite/lib/g++.exp +++ b/gnu/usr.bin/gcc/gcc/testsuite/lib/g++.exp @@ -50,7 +50,7 @@ proc g++_version { } { set tmp [remote_exec host "$compiler -v"] set status [lindex $tmp 0]; set output [lindex $tmp 1]; - regexp "version.*$" $output version + regexp "version\[^\n\r\]*" $output version if { $status == 0 && [info exists version] } then { if [is_remote host] { clone_output "$compiler $version\n" @@ -72,6 +72,7 @@ proc g++_version { } { # proc g++_include_flags { paths } { global srcdir + global objdir global HAVE_LIBSTDCXX_V3 global TESTING_IN_BUILD_TREE @@ -89,7 +90,7 @@ proc g++_include_flags { paths } { set gccpath ${paths} if { ${HAVE_LIBSTDCXX_V3} } { - set odir_v3 [lookfor_file ${gccpath} libstdc++-v3] + set odir_v3 ${objdir}/../../../lib/libstdc++ append flags [exec sh ${odir_v3}/testsuite_flags --build-includes] } else { set odir_v2 [lookfor_file ${gccpath} libstdc++] |