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

NAKATA Maho chat95@mac.com
Tue Jul 26 02:59:00 GMT 2005


Hello I found a bug in libjava/configure.ac and accordingly
libjava/configure for FreeBSD 5.
patch was made against 4.1-20050716

--- 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)



More information about the Java-patches mailing list