PATCH: libjava FreeBSD configuration

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue Apr 9 11:54:00 GMT 2002


In article <Pine.BSF.4.44.0204091607320.21072-100000@naos.dbai.tuwien.ac.at>,
Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

>>> OK, with this patch and the related GC patch (just posted under
>>> separate cover), I now see only this expected set of 4
>>> deterministic failures (in both fully bootstrapped mainline and
>>> 3.1 trees on i386-*-freebsd4.5):
>> Thanks.  I'm marking this port as `ok' on the status page.

> Perhaps I'm missing something, but...  Why isn't libgcj enabled by default
> on this platform (i386-unknown-freebsd4.5)

Tom> I don't think there is a reason now.  Loren, would it work ok if we
Tom> enabled this by default?

> That is, why does ./configure --enable-languages=c,c++,java just build the
> java frontend, but not the libraries?

Hi Gerald,

Until mere days ago, this port was not working very well since I
hadn't given it the attention it required after getting it to
bootstrap.  Here is the tested patch which follows the NetBSD entry:

[Ran top-level configure without --enable-libgcj option on
 i386-*-freebsd4.5 in fresh directory and line-compared to the version
 built last night configured with --enable-libgcj with no differences.
 Permission to install on mainline and branch?]

Regards,
Loren

	* configure.in: Add unified FreeBSD configuration.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.126
diff -c -r1.126 configure.in
*** configure.in	8 Apr 2002 18:57:57 -0000	1.126
--- configure.in	9 Apr 2002 18:38:41 -0000
***************
*** 617,622 ****
--- 617,634 ----
    *-*-chorusos)
      noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
      ;;
+   *-*-freebsd*)
+     # The unified FreeBSD configuration
+     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
+     case "${target}" in
+       # Only enable libjava on bootstrapped (or known similar) versions
+       *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
+ 	noconfigdirs="$noconfigdirs ${libgcj}" ;;
+       i[34567]86-*-freebsd*) ;;
+       alpha*-*-freebsd*) ;;
+       *) noconfigdirs="$noconfigdirs ${libgcj}" ;;
+     esac
+     ;;
    *-*-netbsd*)
      # Skip some stuff on all NetBSD configurations.
      skipdirs="$skipdirs target-newlib target-libiberty target-libgloss"



More information about the Java-patches mailing list