* 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>.
This commit is contained in:
Gary V. Vaughan 2000-05-29 18:02:07 +00:00
parent 6aa20f59be
commit a2785e0c99
2 changed files with 18 additions and 0 deletions

View File

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

11
libtool.m4 vendored
View File

@ -576,6 +576,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'