[Glibc-bsd-devel] [PATCH] GNU/KNetBSD support

Robert Millan zeratul2@wanadoo.es
Thu, 18 Sep 2003 17:48:46 +0000


--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hi!

These patches add GNU/KNetBSD support for libtool. I'm attaching one version
for HEAD and another for the 1.5 branch, please apply them both (I'm specialy
interested in being supported by the upcoming 1.5.1 release).

The ChangeLog entry is the same for both:

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

	* libtool.m4: Add GNU/KNetBSD support.
	* ltdl.m4: Likewise.

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

--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="lt_1.5.diff"

--- libtool.old/ltdl.m4	2003-07-30 16:06:59.000000000 +0000
+++ libtool/ltdl.m4	2003-09-18 12:17:29.000000000 +0000
@@ -142,10 +142,8 @@
     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;   
-  kfreebsd*-gnu)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
-  gnu*)
+  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
+    # GNU and its variants, using gnu ld.so (Glibc)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
   hpux10*|hpux11*)
@@ -161,9 +159,6 @@
     # at 6.2 and later dlopen does load deplibs.
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
-  linux*)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
   netbsd*)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
--- libtool.old/libtool.m4	2003-09-10 07:54:39.000000000 +0000
+++ libtool/libtool.m4	2003-09-18 12:20:12.000000000 +0000
@@ -1457,6 +1457,18 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
 netbsd*)
   version_type=sunos
   need_lib_prefix=no

--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="lt_head.diff"

diff -ur libtool.old/libtool.m4 libtool/libtool.m4
--- libtool.old/libtool.m4	2003-09-13 12:02:03.000000000 +0000
+++ libtool/libtool.m4	2003-09-18 14:19:47.000000000 +0000
@@ -1457,6 +1457,18 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
diff -ur libtool.old/ltdl.m4 libtool/ltdl.m4
--- libtool.old/ltdl.m4	2003-08-27 16:24:44.000000000 +0000
+++ libtool/ltdl.m4	2003-09-18 14:20:46.000000000 +0000
@@ -145,10 +145,8 @@
     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
-  kfreebsd*-gnu)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
-  gnu*)
+  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
+    # GNU and its variants, using gnu ld.so (Glibc)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
   hpux10*|hpux11*)
@@ -164,9 +162,6 @@
     # at 6.2 and later dlopen does load deplibs.
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
-  linux*)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
   netbsd*)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;

--9amGYk9869ThD9tj--