branch development updated: libtool.m4: Avoid warning message in test case 30

Ileana Dumitrescu <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch development
in repository libtool.

The following commit(s) were added to refs/heads/development by this push:
     new a08d2989 libtool.m4: Avoid warning message in test case 30
a08d2989 is described below

commit a08d2989cbee7022d63dc75d2eb9b3e96d3f174e
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Wed Sep 11 17:38:06 2024 +0300

    libtool.m4: Avoid warning message in test case 30
    
    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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 6a6d13c5..99ebf60f 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.