]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): For MinGW, reverted DLL
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Fri, 17 Oct 2003 03:57:34 +0000 (03:57 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Fri, 17 Oct 2003 03:57:34 +0000 (03:57 +0000)
check method back to a working objdump-based test.  This is not as
concrete a test as using the 'file' command, but it does not
require that the 'file' command be available.

ChangeLog
libtool.m4

index 58e4e8f6ba3257148d95882b7dc66d136de402e5..f5230a10e05120e2764519d69ca21b6743881f00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-16  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+       * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): For MinGW, reverted DLL
+       check method back to a working objdump-based test.  This is not as
+       concrete a test as using the 'file' command, but it does not
+       require that the 'file' command be available.
+
 2003-09-29  Scott James Remnant  <scott@netsplit.com>
 
        * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for linux*
index 84492cd86ff19560c250e100b77a1eb2bff70b40..21ca9215b2df902abd2bd86d32f52a0d5a5e4c39 100644 (file)
@@ -2117,12 +2117,19 @@ bsdi4*)
   lt_cv_file_magic_test_file=/shlib/libc.so
   ;;
 
-cygwin* | mingw* | pw32*)
+cygwin*)
   # win32_libid is a shell function defined in ltmain.sh
   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   lt_cv_file_magic_cmd='win32_libid'
   ;;
 
+mingw* | pw32*)
+  # Base MSYS/MinGW do not provide the 'file' command needed by
+  # win32_libid shell function, so use a weaker test based on 'objdump'.
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
 darwin* | rhapsody*)
   # this will be overwritten by pass_all, but leave it in just in case
   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'