I happened to notice that dg-require-sharedlib hardcodes the targets
that shared library, and Solaris is missing. Fixed with the following
patch.
Bootstrapped on i386-pc-solaris2.12, the affected testcases now PASS.
Ok for mainline?
Rainer
2016-05-04 Rainer Orth <[email protected]>
* testsuite/lib/libstdc++.exp (libstdc++_init): Enable on
*-*-solaris*.
# HG changeset patch
# Parent ba48a13c1219b37de7d83394a829bc065b62b24f
Enable dg-reqire-sharedlib on Solaris
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -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"
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University