libstdc++-v3/testsuite/lib/libstdc++.exp contains code:

    # Collect into libtestc++.a
    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 result [lindex [local_exec "$ranlibcommand" "" "" 300] 0]
        if { $result != 0 } {
            error "could not link libtestc++.a"
        }
    }

For a cross-compiler this should use $target-ar and $target-ranlib, not plain
"ar" and "ranlib".


-- 
           Summary: [4.2/4.3 Regression] libstdc++ testsuite hardcodes "ar"
                    and "ranlib"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30675

Reply via email to