This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [MinGW] PR target/19970: Java unnecessarily disabled for MinGW in top-level configure
- From: David Ayers <d dot ayers at inode dot at>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, Nathanael Nerode <neroden at gcc dot gnu dot org>, Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Date: Thu, 08 Jun 2006 22:34:56 +0200
- Subject: Re: [MinGW] PR target/19970: Java unnecessarily disabled for MinGW in top-level configure
- References: <4486D4AB.8000104@gmail.com> <e698k6$dkh$1@sea.gmane.org>
Ranjit Mathew schrieb:
> Ranjit Mathew wrote:
>
>>> Java and its libraries have been building for the MinGW
>>>targets since at least GCC 3.3, but they are still enumerated
>>>in noconfigdirs for MinGW targets in the top-level configure
>>>script. Because of this, libgcj is not build for MinGW
>>>even if --enable-languages lists java - an explicit
>>>--enable-libgcj is needed to overcome this. Recently,
>>>target-boehm-gc was also added to this list (and whereever
>>>else ${libgcj} was listed), exacerbating the problem.
>
>
> The exacerbated problem is that even --enable-libgcj doesn't
> pull in Boehm-GC and neither does --enable-java-gc=boehm.
>
> The current situation is therefore something of a showstopper
> for Java on MinGW.
I had followed this advice which seemed reasonable:
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00886.html
But it seems --enable-libgcj is indeed used to enable java where it
isn't enabled by default where I had the impression that it was used to
--disable-libgcj it where it is.
(see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27963 )
I'm happy to post a patch which would remove target-boehm-gc from
noconfigdirs for the various targets for which I've added them, if that
resolves these issues. (Note that target-boehm-gc will be re-added to
noconfigdirs dirs if it wasn't requested for Objective-C and Java is not
disabled.)
Yet I fail to understand the need for --enable/disable-libgcj if it is
merely being used to enable/disable java. Why isn't that being done via
language variable?
Cheers,
David