libstdc++.exp (libstdc++_init): Require native testing before setting v3-sharedlib...
authorHans-Peter Nilsson <hp@axis.com>
Thu, 13 Oct 2005 07:29:39 +0000 (07:29 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 13 Oct 2005 07:29:39 +0000 (07:29 +0000)
* testsuite/lib/libstdc++.exp (libstdc++_init): Require
native testing before setting v3-sharedlib to 1.

From-SVN: r105361

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 8b2755b..efc041e 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-13  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/lib/libstdc++.exp (libstdc++_init): Require
+       native testing before setting v3-sharedlib to 1.
+
 2005-10-12  Joe Buck  <Joe.Buck@synopsys.com>
 
        * docs/html/27_io/howto.html: Use reference to ifstream when
index ba7da26..3c5397b 100644 (file)
@@ -133,7 +133,7 @@ proc libstdc++_init { testfile } {
     set v3-sharedlib 0
     set sharedlibdir [lookfor_file $blddir src/.libs/libstdc++.so]
     if {$sharedlibdir != ""} {
-       if { [string match "*-*-linux*" $target_triplet] } {
+       if { [string match "*-*-linux*" $target_triplet] && [isnative] } {
            set v3-sharedlib 1
            verbose -log "shared library support detected"
        }