This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
gcc-4.1-20050716:A patch to support FreeBSD 5 pthread
- From: NAKATA Maho <chat95 at mac dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 26 Jul 2005 11:58:57 +0900 (JST)
- Subject: gcc-4.1-20050716:A patch to support FreeBSD 5 pthread
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)