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]
Other format: [Raw text]

Re: gcc-4.1-20050716:A patch to support FreeBSD 5 pthread


In Message-ID: <m3sly0b0ar.fsf@localhost.localdomain> 
Tom Tromey <tromey@redhat.com> wrote:

> >>>>> ">" == NAKATA Maho <chat95@mac.com> writes:
> 
> >> Hello I found a bug in libjava/configure.ac and accordingly
> >> libjava/configure for FreeBSD 5.
> >> patch was made against 4.1-20050716
> 
> Could you write a ChangeLog entry for this?
> I am not a FreeBSD expert so either we'll need a FreeBSD person to
> comment on this or we'll just put it in on good faith...

Thanks Tom!
ChangeLog
FreeBSD >=5.3 gcj should link against -lpthread rather than -lc_r.
NAKATA Maho <maho@FreeBSD.org>

please use maho@FreeBSD.org instead of chat95@mac.com

Gerald and O'Brien, if you have some comments on this patch please let me
know. I think this is sufficient, namely we don't have to consider 5.0,5.1
and 5.2 when -lpthread is under development, and gcc/configure
seem to be employing same policy for this issue.

--- libjava/configure.ac.orig	Sat Jul 16 10:22:59 2005
+++ libjava/configure.ac	Fri Jul 22 10:52:24 2005
@@ -757,11 +757,10 @@
 	THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
 	;;
      *-*-freebsd*)
-	# FreeBSD 5 implements a model much closer to other modern UNIX
-	# which support threads.  However, it still does not support
-	# -lpthread.
+	# FreeBSD >=5.3 implements a model much closer to other modern UNIX
+	# which support threads, and support -lpthread.
 	THREADLDFLAGS=-pthread
-	THREADSPEC=-lc_r
+	THREADSPEC=-lpthread
 	;;
      alpha*-dec-osf*)
 	THREADCXXFLAGS=-pthread
--- libjava/configure.orig	Fri Jul 22 10:55:25 2005
+++ libjava/configure	Fri Jul 22 10:59:36 2005
@@ -8444,10 +8444,9 @@
 	;;
      *-*-freebsd*)
 	# FreeBSD 5 implements a model much closer to other modern UNIX
-	# which support threads.  However, it still does not support
-	# -lpthread.
+	# which support threads, and supports -lpthread.
 	THREADLDFLAGS=-pthread
-	THREADSPEC=-lc_r
+	THREADSPEC=-lpthread
 	;;
      alpha*-dec-osf*)
 	THREADCXXFLAGS=-pthread
  
-- NAKATA, Maho (maho@FreeBSD.org)


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