This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Configuration patch for i386-unknown-freebsd


Loren James Rittle wrote:

> I notice that
> important FreeBSD patches are already in versions of the Boehm
> collector beyond the version in the gcc tree.  Should I attempt to see
> which ones fix problems, or should I assume that the gcc tree will
> upgrade at some point in the near future?

Yes, I plan to bring in the latest GC into the trunk shortly. I don't think we'll
be using it on the branch, however.

> Bootstrapped on i386-unknown-freebsd4.2 on mainline.  Confirmed to now
> get past entire build in boehm-gc.  A separate patch will be submitted
> to handle configuration in libjava for this platform.  I can apply it
> myself, if approved.

How about something like:

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/configure.in,v
retrieving revision 1.21.4.1
diff -u -r1.21.4.1 configure.in
--- configure.in        2001/04/26 04:33:06     1.21.4.1
+++ configure.in        2001/05/03 03:30:30
@@ -38,6 +38,7 @@
     ;;
  posix | pthreads)
     THREADS=posix
+    THREADLIBS=-lpthread
     case "$host" in
      *-*-linux*)
        AC_DEFINE(LINUX_THREADS)
@@ -50,8 +51,13 @@
      *-*-irix*)
        AC_DEFINE(IRIX_THREADS)
        ;;
+     *-*-freebsd*)
+       AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
+       AC_DEFINE(FREEBSD_THREADS)
+       INCLUDES=-pthread
+       THREADLIBS=-pthread
+       ;;
     esac
-    THREADLIBS=-lpthread
     ;;
  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
     AC_MSG_ERROR(thread package $THREADS not yet supported)


This way we don't have to specify THREADLIBS for every platform individually, since
-lpthreads is presumably the most common case for posix platforms.

regards

  [ bryce ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]