This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30675] New: [4.2/4.3 Regression] libstdc++ testsuite hardcodes "ar" and "ranlib"
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2007 02:30:19 -0000
- Subject: [Bug libstdc++/30675] New: [4.2/4.3 Regression] libstdc++ testsuite hardcodes "ar" and "ranlib"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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