diff mbox

[v3] Enable dg-reqire-sharedlib on Solaris

Message ID yddeg9glgg7.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth May 5, 2016, 2:36 p.m. UTC
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*.

Comments

Jonathan Wakely May 5, 2016, 4:37 p.m. UTC | #1
On 05/05/16 16:36 +0200, Rainer Orth wrote:
>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?

Looks good - OK, thanks.
diff mbox

Patch

# 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"