This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Newbie instructions for building gcj for Windows
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 27 Jun 2002 00:22:19 -0400 (EDT)
- Subject: Re: Newbie instructions for building gcj for Windows
On 26 Jun 2002, Adam Megacz wrote:
> Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> > I don't know if a cygwin-to-mingw cross is possible, however.
>
> AFAIK, cygwin == mingw + '-lcygwin', so if you get it working on
> cygwin, it should be a simple matter of adding '-mno-cygwin'.
Not exactly. Cygwin links in some other components, e.g. newlib. It
has a different C runtime and headers, i.e. not based on msvcrt.dll. The
two are sufficiently different that I'd recommend a true cross compiler
rather than trying to mess with -mno-cygwin.
Of course, it'd be nice to have Cygwin building gcj natively too... what's
the obstacle? Just boehm-gc? It ought to work, at least with
win32-threads.c.
Jeff