Does libjava support cross compiling to glibc?

Geoff Keating geoffk@geoffk.org
Sun Jun 2 11:57:00 GMT 2002


"H . J . Lu" <hjl@lucon.org> writes:

> In libjava/configure.in, there are
> 
> if test -n "${with_cross_host}"; then
>    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
>    # may not work correctly, because the compiler may not be able to
>    # link executables.
> 
>    # We assume newlib.  This lets us hard-code the functions we know
>    # we'll have.
>    AC_DEFINE(HAVE_MEMMOVE)
>    AC_DEFINE(HAVE_MEMCPY)
>    ....
> 
> It seems to me there is no way for me to cross compile libjava to
> anyhthing but newlib. It is kind of strange. Shouldn't libjava do
> things normally and default cross compiling to newlib?

This is PR java/5688.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>



More information about the Gcc mailing list