Building GCC/GCJ under cygwin and Win32
Murga.org
john@murga.org
Sun May 12 12:09:00 GMT 2002
Hi
Dunno if this will be of interest to anyone, but here we go :
Following the instructions I found in this lists archives I've
managed to build GCC3.1/GCJ (latest snapshot) with posix threading
through the following :
configure --enable-threads=posix --enable-libgcj --disable-nls
--enable-languages=c,c++,java --with-gnu-ld --with-gnu-as
--enable-gc-type=boehm --disable-shared --disable-hash-synchronization
--disable-interpreter --enable-sjlj-exceptions
To get this to work I had to change the posix-threads stuff (as
some of the functions where only defined for hash synchronization)
and the GC_clear_stack_inner function in the boehm-gc stuff (because
it always segfault's when recursing).
It all seems to work OK (no "!(addr &FLAGS)" assertion fail), and
my test multi-threaded progs seem to work well, but I cannot help
thinking I am just being lucky...
What I really wanted to do was build GCJ so I could use -mno-cygwin to
produce MingW binaries, but I don't even know where to start with that,
are there any really simple instructions for this anywhere ?
More information about the Java
mailing list