ports/63427: [lang/gcc33] Disabling the Java frontend at compile time

Etienne Robillard erob at videotron.ca
Sun Apr 11 11:21:50 PDT 2004

Parv wrote:
> in message <Pine.BSF.4.58.0403240305510.96995 at acrux.dbai.tuwien.ac.at>,
> wrote Gerald Pfeifer thusly...
>>On Sat, 20 Mar 2004, Parv wrote:
>>>Would not placing the %%LIBJAVA%% suffix inside some of the gcj*
>>>binaries work?
>>Yes, but in that case we should add a WITHOUT_JAVA knob which then
>>also implies WITHOUT_LIBJAVA.
> Right you are.  Agree.  Yup.

Done :)
see below.

>>my main focus now is to get
>>  http://people.freebsd.org/~fenner/errorlogs/gerald@freebsd.org.html
>>down to zero failures
> ...
>>Still, if someone provides a fully tested patch after the
>>currently remaining issues with the gcc3x ports have been
>>resolved, I'm definitely willing to strongly consider that patch.
> No problem; i will try to provide a patch after that.
> Though i always check the cvs logs, at least for gcc3x ports, please
> somebody remind me in case i forget when the time comes.
>   - Parv

Hi guys,

Here's a diff for building/packing gcc-3.3.4 with both 
--enable-languages and --disable-libgcj turned on.

--- Makefile.old    Sun Apr 11 12:47:07 2004
+++ Makefile    Sun Apr 11 13:34:51 2004
@@ -94,6 +94,16 @@
  MAN7=      fsf-funding.7 gfdl.7 gpl.7
  INFO=      cpp cppinternals g77 gcc gccint gcj fastjar

+OPTIONS=   JAVA    "Enable Java support (implies WITH_LIBJAVA=yes)" on
+.if defined(WITH_JAVA)
+CONFIGURE_ARGS+=   --enable-languages=c,c++,f77,objc
  .if defined(WITHOUT_LIBJAVA)
  CONFIGURE_ARGS+=   --disable-libgcj
  PLIST_SUB+=    LIBJAVA="@comment "

Ain't that GUI Options screen cool ? :-)
I thought it was, but feel free to remove it if it causes any troubles..

Here's the pkg-plist:

--- pkg-plist.old   Sun Apr 11 09:37:40 2004
+++ pkg-plist   Sun Apr 11 12:39:41 2004
@@ -9,16 +9,16 @@

There's still some minimal glitches about info files, namely gcj and 
fastjar. I'm sure this is not a problem. One more thing, I didn't had 
time to test _with_ (default settings) the JAVA knob. So maybe this is 
still early, since Gerald wanted to clear out bugs before adding stuff.



 > gcc33 -v
Reading specs from 
Configured with: ./..//gcc-3.3-20040322/configure --disable-nls 
--with-system-zlib --program-suffix=33 
--disable-shared --enable-languages=c,c++,f77,objc --disable-libgcj 
--prefix=/usr/local i386-portbld-freebsd4.9
Thread model: posix
gcc version 3.3.4 20040322 (prerelease) [FreeBSD]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040411/5b699a6e/signature.bin

More information about the freebsd-ports mailing list