From: Gary V. Vaughan Date: Mon, 29 May 2000 17:39:25 +0000 (+0000) Subject: * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for X-Git-Tag: multi-language-merge-point~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6daca24982cb28513dd94b8ad6701603c5dbc8c;p=thirdparty%2Flibtool.git * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for freebsd (below). * libtool.m4 (netbsd ELF): support file_magic. From Dan Winship . --- diff --git a/ChangeLog b/ChangeLog index ac3d530be..163fe0c37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-05-29 Gary V. Vaughan + + * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for + freebsd (below). + * libtool.m4 (netbsd ELF): support file_magic. + From Dan Winship . + 2000-05-29 Steven M. Schultz * libtool.m4 (bsdi4*): Add -L option to bsdi4's file_magic_cmd diff --git a/libtool.m4 b/libtool.m4 index 14f3b95e4..e41e28191 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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'