This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Enable dg-reqire-sharedlib on Solaris
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 05 May 2016 16:36:40 +0200
- Subject: [v3] Enable dg-reqire-sharedlib on Solaris
- Authentication-results: sourceware.org; auth=none
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 <ro@CeBiTec.Uni-Bielefeld.DE>
* 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