This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java/5688: cross compiler build fails in libjava


Tom Tromey <tromey@redhat.com> writes:

> >>>>> "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.

There's also a --with-newlib flag that could be tested.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]