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


In article <3AF0D366.BEE46839@waitaki.otago.ac.nz> you write:

>> Bootstrapped on i386-unknown-freebsd4.2 on mainline. [...]

> How about something like:

[...]

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

Agreed.  Your approach is quite fine by me.  OK to check-in on
mainline?  (Reconfigured/rebuilt in already bootstrapped tree.)

Thank you for the past input.

Regards,
Loren

2001-05-03  Loren J. Rittle  <ljrittle@acm.org>
	    with final tuning by Bryce McKinlay

	* configure.in: Add support for --enable-threads=posix on FreeBSD.
	* configure: Rebuilt.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/boehm-gc/configure.in,v
retrieving revision 1.22
diff -c -r1.22 configure.in
*** configure.in	2001/04/26 04:29:38	1.22
--- configure.in	2001/05/03 23:19:33
***************
*** 38,48 ****
--- 38,55 ----
      ;;
   posix | pthreads)
      THREADS=posix
+     THREADLIBS=-lpthread
      case "$host" in
       *-*-linux*)
  	AC_DEFINE(LINUX_THREADS)
  	AC_DEFINE(_REENTRANT)
  	;;
+      *-*-freebsd*)
+ 	AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
+ 	AC_DEFINE(FREEBSD_THREADS)
+ 	INCLUDES=-pthread
+ 	THREADLIBS=-pthread
+       	;;
       *-*-solaris*)
  	AC_DEFINE(SOLARIS_THREADS)
  	AC_DEFINE(_SOLARIS_PTHREADS)
***************
*** 51,57 ****
  	AC_DEFINE(IRIX_THREADS)
  	;;
      esac
-     THREADLIBS=-lpthread
      ;;
   decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
      AC_MSG_ERROR(thread package $THREADS not yet supported)
--- 58,63 ----


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