]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Avoid warning message in test case 30
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 11 Sep 2024 14:38:06 +0000 (17:38 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 11 Sep 2024 15:17:17 +0000 (18:17 +0300)
The test case for deplibs_check_method in tests/demo.at produces a
warning on multiple systems, such as Cygwin and Mingw. To avoid this
warning when using file_magic, '^x86 archive static' is appended for
lt_cv_deplibs_check_method.

* m4/libtool.m4: Append '^x86 archive static' for file_magic in the
lt_cv_deplibs_check_method.

m4/libtool.m4

index 6a6d13c512e3c2a4968a41148e9903d6a3239d6d..99ebf60f93ab7847554c184235eff6bc049d05ea 100644 (file)
@@ -3522,7 +3522,7 @@ bsdi[[45]]*)
 
 cygwin*)
   # func_win32_libid is a shell function defined in ltmain.sh
-  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL|^x86 archive static'
   lt_cv_file_magic_cmd='func_win32_libid'
   ;;
 
@@ -3531,7 +3531,7 @@ mingw* | windows* | pw32*)
   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   # unless we find 'file', for example because we are cross-compiling.
   if ( file / ) >/dev/null 2>&1; then
-    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL|^x86 archive static'
     lt_cv_file_magic_cmd='func_win32_libid'
   else
     # Keep this pattern in sync with the one in func_win32_libid.