Enable dg-reqire-sharedlib on Solaris

* testsuite/lib/libstdc++.exp (libstdc++_init): Enable on *-*-solaris*.

From-SVN: r235931
This commit is contained in:
Rainer Orth 2016-05-05 19:54:42 +00:00 committed by Rainer Orth
parent c4f2425fe8
commit 40436d8169
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2016-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/lib/libstdc++.exp (libstdc++_init): Enable on *-*-solaris*.
2016-05-05 Jonathan Wakely <jwakely@redhat.com>
* testsuite/experimental/filesystem/path/native/string.cc: Add

View File

@ -184,8 +184,9 @@ proc libstdc++_init { testfile } {
set v3-sharedlib 0
set sharedlibdir [lookfor_file $blddir src/.libs/libstdc++.$shlib_ext]
if {$sharedlibdir != ""} {
if { ([string match "*-*-linux*" $target_triplet]
|| [string match "*-*-gnu*" $target_triplet])
if { ([string match "*-*-gnu*" $target_triplet]
|| [string match "*-*-linux*" $target_triplet]
|| [string match "*-*-solaris*" $target_triplet])
&& [isnative] } then {
set v3-sharedlib 1
verbose -log "shared library support detected"