re PR libstdc++/30675 (libstdc++ testsuite hardcodes "ar" and "ranlib")
authorJoseph Myers <joseph@codesourcery.com>
Mon, 5 Mar 2007 22:07:09 +0000 (22:07 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 5 Mar 2007 22:07:09 +0000 (22:07 +0000)
PR libstdc++/30675
* testsuite/lib/libstdc++.exp (v3-build_support): Use [transform
"ar"] and [transform "ranlib"].

From-SVN: r122576

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

index f0718ffcaf82e1bfe517dffed8c6d49645f22c00..5e0a87f42f9837f4ab3c8bc6d8dd571c1c5dfec5 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-05  Joseph Myers  <joseph@codesourcery.com>
+
+       PR libstdc++/30675
+       * testsuite/lib/libstdc++.exp (v3-build_support): Use [transform
+       "ar"] and [transform "ranlib"].
+
 2007-03-04  Paolo Carlini  <pcarlini@suse.de>
 
        * testsuite/27_io/basic_ostream/inserters_arithmetic/
index 3557d13637fb97d260d8267a30fa8060187abec7..f69481a11ef0adc01488ddc185a06310c7b54f68 100644 (file)
@@ -466,11 +466,13 @@ proc v3-build_support { } {
     }
 
     # Collect into libtestc++.a
-    set arcommand "ar -rc ./libtestc++.a ${libtest_objs}"
+    set ar [transform "ar"]
+    set arcommand "$ar -rc ./libtestc++.a ${libtest_objs}"
     set result [lindex [local_exec "$arcommand" "" "" 300] 0]
     verbose "link result is $result"
     if { $result == 0 } {
-       set ranlibcommand "ranlib ./libtestc++.a"
+       set ranlib [transform "ranlib"]
+       set ranlibcommand "$ranlib ./libtestc++.a"
        set result [lindex [local_exec "$ranlibcommand" "" "" 300] 0]
        if { $result != 0 } {
            error "could not link libtestc++.a"