]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for
authorGary V. Vaughan <gary@gnu.org>
Mon, 29 May 2000 17:39:25 +0000 (17:39 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 29 May 2000 17:39:25 +0000 (17:39 +0000)
freebsd (below).
* libtool.m4 (netbsd ELF): support file_magic.
From Dan Winship <danw@helixcode.com>.

ChangeLog
libtool.m4

index ac3d530be7f843879a92d515c061e9da3a3816cd..163fe0c371b13632d6ec5cbc0ed94fa6d58a4802 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-29  Gary V. Vaughan  <gvv@techie.com>
+
+       * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for
+       freebsd (below).
+       * libtool.m4 (netbsd ELF): support file_magic.
+       From Dan Winship <danw@helixcode.com>.
+
 2000-05-29  Steven M. Schultz <sms@moe.2bsd.com>
 
        * libtool.m4 (bsdi4*): Add -L option to bsdi4's file_magic_cmd
index 14f3b95e4226a55528c59afcc251b469644bbdb6..e41e28191b9b18092cbabb2c88ddac608e7a78de 100644 (file)
@@ -512,7 +512,7 @@ cygwin* | mingw*)
   lt_cv_file_magic_cmd='${OBJDUMP} -f'
   ;;
 
-freebsd*)
+freebsd* )
   case "$version_type" in
   freebsd-elf*)
     lt_cv_deplibs_check_method=pass_all
@@ -579,6 +579,17 @@ linux-gnu*)
   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
   ;;
 
+netbsd*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
+  else
+    changequote(,)dnl
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+    changequote([, ])dnl
+    lt_cv_file_magic_cmd='/usr/bin/file -L'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+  fi
+  ;;
+
 osf3* | osf4* | osf5*)
   # this will be overridden with pass_all, but let us keep it just in case
   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'