]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
From Brad <brad@comstyle.com>:
authorGary V. Vaughan <gary@gnu.org>
Sun, 5 Aug 2001 12:03:06 +0000 (12:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 5 Aug 2001 12:03:06 +0000 (12:03 +0000)
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [openbsd]:  OpenBSD
can build modules without a `lib' prefix and version number.
Move the deplibs check code from here...
(AC_DEPLIBS_CHECK_METHOD): ...to here.

ChangeLog
libtool.m4

index dcbd32c7324f1f386aeb1e657a0309f6539ac3af..293189f4bb5a20b910f64ca00f1cbc6833fe6097 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-05  Gary V. Vaughan  <gary@gnu.org>
+
+       From Brad <brad@comstyle.com>:
+       * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [openbsd]:  OpenBSD
+       can build modules without a `lib' prefix and version number.
+       Move the deplibs check code from here...
+       (AC_DEPLIBS_CHECK_METHOD): ...to here.
+
 2001-08-05  Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
 
        * libtool.m4 [osf3*, osf4*, osf5*]: Tru64 *can* build modules
index c08aa40b8e0e6d68234bde14858ce58b6fd814b4..febe043711740e0a4b37145f594d926e7343ad68 100644 (file)
@@ -1294,15 +1294,15 @@ nto-qnx)
 
 openbsd*)
   version_type=sunos
+  need_lib_prefix=no
+  need_version=no
   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=`echo /usr/lib/libc.so.*`
   if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test"$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-    [deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object']
+    shlibpath_overrides_runpath=no
   else
-    deplibs_check_method='file_magic OpenBSD.* shared library'
+    shlibpath_overrides_runpath=yes
   fi
   ;;
 
@@ -1952,6 +1952,16 @@ newos6*)
 nto-qnx)
   lt_cv_deplibs_check_method=unknown
   ;;
+
+openbsd*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+  if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+    [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object']
+  else
+    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+  fi
+  ;;
      
 osf3* | osf4* | osf5*)
   # this will be overridden with pass_all, but let us keep it just in case