Libtool support for MidnightBSD is provided through the patch at
<https://savannah.gnu.org/patch/?10007>.

This patch adds the corresponding support in the 'havelib' module.


2021-02-07  Bruno Haible  <br...@clisp.org>

        havelib: Add support for MidnightBSD.
        * build-aux/config.rpath: Treat MidnightBSD like FreeBSD >= 4.

diff --git a/build-aux/config.rpath b/build-aux/config.rpath
index 69988c5..4b7dc49 100755
--- a/build-aux/config.rpath
+++ b/build-aux/config.rpath
@@ -371,7 +371,7 @@ else
       hardcode_direct=yes
       hardcode_minus_L=yes
       ;;
-    freebsd* | dragonfly*)
+    freebsd* | dragonfly* | midnightbsd*)
       hardcode_libdir_flag_spec='-R$libdir'
       hardcode_direct=yes
       ;;
@@ -547,7 +547,7 @@ case "$host_os" in
   freebsd[23].*)
     library_names_spec='$libname$shrext$versuffix'
     ;;
-  freebsd* | dragonfly*)
+  freebsd* | dragonfly* | midnightbsd*)
     library_names_spec='$libname$shrext'
     ;;
   gnu*)


Reply via email to