[Glibc-bsd-devel] Re: [Glibc-bsd-hackers] [PATCH] GNU/KFreeBSD support in lib{java, stdc++-v3}

Robert Millan zeratul2@wanadoo.es
Thu, 11 Sep 2003 01:52:02 +0000


--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline



I'm resending this message because I forgot to CC the libstdc++ and
java-patches lists. Patch is (re)attached.

On Wed, Sep 10, 2003 at 05:03:56PM +0000, Robert Millan wrote:
> 
> Hi!
> 
> The attached patch adds support for GNU/KFreeBSD to libjava and libstdc++-v3.
> 
> It's made by Bruno Haible and I updated for CVS and changed it to use the new
> config.guess triplet. I will provide a patch for the gcc/ directory later, I
> need to obtain some responses from gcc-help first.
> 
> ChangeLog entries are below and also in the patch header. Please remember to
> regenerate the pertinent files after appliing. Thanks.
> 
> For libjava/ChangeLog:
> 
> 2003-09-10  Robert Millan  <robertmh@gnu.org>
> 
>         By way of Bruno Haible <bruno@clisp.org>:
>         * configure.in: Add GNU/KFreeBSD support.
>         * configure: Regenerate.
> 
> For libstdc++-v3/ChangeLog:
> 
> 2003-09-10  Robert Millan  <robertmh@gnu.org>
> 
>         By way of Bruno Haible <bruno@clisp.org>:
>         * acinclude.m4: Add GNU/KFreeBSD support.
>         * aclocal.m4: Regenerate.
>         * configure: Regenerate.

-- 
Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T, Ainulindale (Silmarillion)

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kfreebsd-gnu.diff"


For libjava/ChangeLog:

2003-09-10  Robert Millan  <robertmh@gnu.org>

	By way of Bruno Haible <bruno@clisp.org>:
	* configure.in: Add GNU/KFreeBSD support.
	* configure: Regenerate.

For libstdc++-v3/ChangeLog:

2003-09-10  Robert Millan  <robertmh@gnu.org>

	By way of Bruno Haible <bruno@clisp.org>:
	* acinclude.m4: Add GNU/KFreeBSD support.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

diff -Nur gcc.old/libjava/configure.in gcc/libjava/configure.in
--- gcc.old/libjava/configure.in	2003-08-21 15:25:46.000000000 +0200
+++ gcc/libjava/configure.in	2003-09-10 03:47:54.000000000 +0200
@@ -445,6 +445,11 @@
      *-*-cygwin*)
 	# Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
 	;;
+     *-*-kfreebsd*-gnu)
+	# KFreeBSD with glibc has -lpthread.
+	THREADLIBS=-lpthread
+	THREADSPEC=-lpthread
+	;;
 changequote(<<,>>)   
      *-*-freebsd[1234]*)
 changequote([,])   
diff -Nur gcc.old/libstdc++-v3/acinclude.m4 gcc/libstdc++-v3/acinclude.m4
--- gcc.old/libstdc++-v3/acinclude.m4	2003-09-02 20:46:46.000000000 +0200
+++ gcc/libstdc++-v3/acinclude.m4	2003-09-10 03:51:40.000000000 +0200
@@ -948,7 +948,7 @@
   # Default to "generic".
   if test $enable_clocale_flag = auto; then
     case x${target_os} in
-      xlinux* | xgnu*)
+      xlinux* | xgnu* | xkfreebsd*-gnu)
         AC_EGREP_CPP([_GLIBCXX_ok], [
         #include <features.h>
         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)

--BOKacYhQ+x31HxR3--