Don't build abi_check for crosses
Daniel Jacobowitz
drow@mvista.com
Mon Sep 8 20:18:00 GMT 2003
On Mon, Sep 08, 2003 at 01:09:21PM -0700, Geoff Keating wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
>
> > This is the 3.3 version of the patch. 3.4 the test is negated and against
> > GLIBCXX_IS_NATIVE:
> > if test x"$GLIBCPP_IS_NATIVE" = xfalse || test x$enable_symvers = xno; then
> >
> > This is necessary because automake can't build abi_check for the host.
> > Right now it's listed as a target program, and will be linked to the newly
> > built libstdc++; if $build != $host or --with-cross-host, we won't be able
> > to run it even if we were able to build it. Ben, CC'd you because you
> > removed the comment saying to build it native only; was there a reason?
> >
> > OK?
>
> Just because it can't be run is no reason not to double-check that it
> can link...
But it can't link, necessarily. We go through some perversions to make
sure that CXX is a C compiler; then testsuite/Makefile.am defines
CXXLINK with a cute little sed expression that might or might not find
you the right C++ compiler. It does for native bootstraps, but I don't
know if it will for non-bootstraps; it definitely doesn't for
host-x-host builds where $CXX at this point is "mipsel-linux-gcc".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Libstdc++
mailing list