This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libjava adjustments for FreeBSD 5 and above
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Cc: NAKATA Maho <maho at FreeBSD dot org>
- Date: Tue, 11 Apr 2006 22:10:48 +0200 (CEST)
- Subject: libjava adjustments for FreeBSD 5 and above
I installed the following patch on the GCC 4.1 branch, after it has
been acked by Loren J. Rittle and Tom Tromey, and I did basic testing
on a FreeBSD 5.4 machine.
I could not yet test GCC HEAD due to the lack of jar right now, but
plan for a workaround and will install the patch there as well then.
Gerald
2006-04-11 NAKATA Maho <maho@FreeBSD.org>
PR libgcj/23829
* configure.ac: Link against -lpthread rather than -lc_r on
FreeBSD 5 and above.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 112851)
+++ configure.ac (working copy)
@@ -803,11 +803,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
+ # systems which support threads and -lpthread.
THREADLDFLAGS=-pthread
- THREADSPEC=-lc_r
+ THREADSPEC=-lpthread
;;
alpha*-dec-osf*)
THREADCXXFLAGS=-pthread