2005-09-12 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Sep 2005 18:36:39 +0000 (18:36 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Sep 2005 18:36:39 +0000 (18:36 +0000)
* testsuite/ext/mt_allocator/22309_thread.cc: Remove dg-do run.
* testsuite/lib/libstdc++.exp ( proc libstdc++_init): Enable
shared only for linux.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104235 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/ext/mt_allocator/22309_thread.cc
libstdc++-v3/testsuite/lib/libstdc++.exp

index 059043b..dedb911 100644 (file)
@@ -1,8 +1,8 @@
 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
 
-       * testsuite/lib/libstdc++.exp (v3-build_support): Use sharedlib for
-       type of target_compile.
-        (v3_target_compile): Set flags for sharelib type.
+       * testsuite/ext/mt_allocator/22309_thread.cc: Remove dg-do run.
+       * testsuite/lib/libstdc++.exp ( proc libstdc++_init): Enable
+       shared only for linux.
        
 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
            David Edelsohn <dje@gcc.gnu.org>
index ce4024e..f224365 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-require-sharedlib "" }
-// { dg-do run { target *-*-linux* } }
 // { dg-options "-g -O2 -pthread -ldl" { target *-*-linux* } }
 
 // Copyright (C) 2004, 2005 Free Software Foundation, Inc.
index 694d190..9c28ba0 100644 (file)
@@ -133,8 +133,10 @@ proc libstdc++_init { testfile } {
     set v3-sharedlib 0
     set sharedlibdir [lookfor_file $blddir src/.libs/libstdc++.so]
     if {$sharedlibdir != ""} {
-        set v3-sharedlib 1
-       verbose -log "shared library support detected"
+       if { [string match "*-*-linux*" $target_triplet] } {
+           set v3-sharedlib 1
+           verbose -log "shared library support detected"
+       } 
     }
     v3track v3-sharedlib 3
 
@@ -337,7 +339,6 @@ proc v3_target_compile { source dest type options } {
 # addition, set v3-wchar_t, v3-threads, v3-test_objs, and v3-symver
 # appropriately.
 proc v3-build_support {} {
-    global cxx
     global srcdir
     global v3-wchar_t
     global v3-threads