re PR libgcj/23829 (FreeBSD 5 support for libjava)
authorNAKATA Maho <maho@FreeBSD.org>
Wed, 12 Apr 2006 19:57:02 +0000 (19:57 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Wed, 12 Apr 2006 19:57:02 +0000 (19:57 +0000)
PR libgcj/23829
* configure.ac: Link against -lpthread rather than -lc_r on
FreeBSD 5 and above.
* configure: Regenerate.

From-SVN: r112897

libjava/ChangeLog
libjava/configure
libjava/configure.ac

index 55ce659a606df94422c7d407467fedfd85f83f81..227d72c6973c01c37a7c53dda097cd3c85e16fa7 100644 (file)
@@ -1,3 +1,10 @@
+2006-04-12  NAKATA Maho  <maho@FreeBSD.org> 
+
+       PR libgcj/23829
+       * configure.ac: Link against -lpthread rather than -lc_r on
+       FreeBSD 5 and above.
+       * configure: Regenerate.
+
 2006-04-11  Bryce McKinlay  <mckinlay@redhat.com>
 
        * gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
index b72520e4e147828a64584629e6a7730f5e1c9355..a8afc704214ffcacb509fb391909886f12337091 100755 (executable)
@@ -9210,11 +9210,10 @@ case "$THREADS" in
        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
index 2731bf3fc3760586f35fbdc8e19fd3de4eb089ab..86359f12a12194c6b35ef4e24ade97d0016bd079 100644 (file)
@@ -800,11 +800,10 @@ case "$THREADS" in
        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