java/5688: cross compiler build fails in libjava
Tom Tromey
tromey@redhat.com
Mon Jun 3 08:06:00 GMT 2002
>>>>> "H.J." == H J Lu <hjl@lucon.org> writes:
H.J.> Here is a patch. It seems to work for me to cross compiling to
H.J.> Linux/x86. No idea how it works for newlib.
I'm not going to check this in.
H.J.> * configure.in: Never assume newlib for cross compile.
This breaks newlib crosses. I know Anthony Green at least tests
these.
If link tests always work properly for linux-x-linux crosses, then
something similar to your patch would be acceptable. It would have to
preserve newlib crosses, though. One approximation to this would be
to use the "native" checking code if the target matches *-linux*.
Perhaps the best approach would be to add a new variable to
configure.host.
Tom
More information about the Gcc-bugs
mailing list