]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++.exp (v3-build_support): Delete libtestc++.a before creation.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 10 Dec 2010 16:25:51 +0000 (16:25 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 10 Dec 2010 16:25:51 +0000 (16:25 +0000)
* testsuite/lib/libstdc++.exp (v3-build_support): Delete
libtestc++.a before creation.

From-SVN: r167693

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

index eaee85c144bddabdb3a559fb78b03770439313d1..dd90a2fb4e7a417b0cac5541ef73718b169a3e07 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/lib/libstdc++.exp (v3-build_support): Delete
+       libtestc++.a before creation.
+
 2010-10-01  Release Manager
 
        * GCC 4.4.5 released.
index 45e92d756ecf80c0045d1acfd2258bb75caed053..2344885bfc5054349b3ab3e6a809c5d0a250fa21 100644 (file)
@@ -554,6 +554,15 @@ proc v3-build_support { } {
     }
 
     # Collect into libtestc++.a
+    # Delete libtestc++.a first.  Mixed 32 and 64-bit archives cannot be
+    # linked on IRIX 6.
+    # Use same procedure as gcc-dg.exp (remove-build-file).
+    if [is_remote host] {
+       # Ensure the host knows the file is gone by deleting there
+       # first.
+       remote_file host delete "./libtestc++.a"
+       }
+    remote_file build delete "./libtestc++.a"
     if  [info exists env(AR)] {
        set ar $env(AR)
     } else {