From MAILER-DAEMON Fri May 02 14:45:36 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uAvOB-0000yl-IS
	for mharc-libtool-commit@gnu.org; Fri, 02 May 2025 14:45:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uAvNt-0000vb-NN
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uAvNt-0008Dy-Ef
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 881D0C66F9E; Fri,  2 May 2025 14:45:14 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: development updated (07adb500 -> 796e497c)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <174621151450.31558.5073971529932733261@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: 07adb5007d9dd0e5baf92195d9625e1b12c02b68
X-Git-Newrev: 796e497ce62bfa5d649dbaf4598b24a29e07e304
Auto-Submitted: auto-generated
Date: Fri,  2 May 2025 14:45:14 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 May 2025 18:45:19 -0000
X-List-Received-Date: Fri, 02 May 2025 18:45:19 -0000

ildumi pushed a change to branch development.

    from 07adb500 NEWS: Update for bugs fixed
     new a33094bf Move mlibc case matches above GNU/Linux (and similar) ones.
     new 796e497c NEWS: Update for previous commit


Summary of changes:
 NEWS          |  3 +++
 m4/libtool.m4 | 70 +++++++++++++++++++++++++++++------------------------------
 2 files changed, 38 insertions(+), 35 deletions(-)


From MAILER-DAEMON Fri May 02 14:45:37 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uAvOC-0000yz-9j
	for mharc-libtool-commit@gnu.org; Fri, 02 May 2025 14:45:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uAvNu-0000vl-Nj
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:20 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uAvNu-0008Dx-Ee
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:18 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 16BADC66F84; Fri,  2 May 2025 14:45:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174621151450.31558.5073971529932733261@vcs2.savannah.gnu.org>
References: <174621151450.31558.5073971529932733261@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 796e497ce62bfa5d649dbaf4598b24a29e07e304
Auto-Submitted: auto-generated
Message-Id: <20250502184517.16BADC66F84@vcs2.savannah.gnu.org>
Date: Fri,  2 May 2025 14:45:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 May 2025 18:45:20 -0000

branch: development
commit 796e497ce62bfa5d649dbaf4598b24a29e07e304
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri May 2 21:39:00 2025 +0300

    NEWS: Update for previous commit
---
 NEWS | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/NEWS b/NEWS
index 81b28f1c..10f7a1a7 100644
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,9 @@ NEWS - list of user-visible changes between releases of GNU Libtool
     utilizing clang builtins or g++ options like, -static-libstdc++, by
     using a new configuration option, --enable-cxx-stdlib.
 
+  - Ensure *-linux-mlibc host matches to mlibc userland rather than
+    matching to GNU/Linux and similar userlands.
+
 
 * Noteworthy changes in release 2.5.4 (2024-11-20) [stable]
 


From MAILER-DAEMON Fri May 02 14:45:38 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uAvOD-0000zT-Rw
	for mharc-libtool-commit@gnu.org; Fri, 02 May 2025 14:45:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uAvNu-0000vc-0A
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uAvNt-0008Dz-Mo
 for libtool-commit@gnu.org; Fri, 02 May 2025 14:45:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 53F3EC45DA7; Fri,  2 May 2025 14:45:15 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org, Mintsuki <mintsuki@protonmail.com>
In-Reply-To: <174621151450.31558.5073971529932733261@vcs2.savannah.gnu.org>
References: <174621151450.31558.5073971529932733261@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: a33094bf07116429c27625c8480de3015fc5d83e
Auto-Submitted: auto-generated
Message-Id: <20250502184516.53F3EC45DA7@vcs2.savannah.gnu.org>
Date: Fri,  2 May 2025 14:45:15 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 May 2025 18:45:20 -0000

branch: development
commit a33094bf07116429c27625c8480de3015fc5d83e
Author: Mintsuki <mintsuki@protonmail.com>
AuthorDate: Sun Apr 27 21:01:12 2025 +0200

    Move mlibc case matches above GNU/Linux (and similar) ones.
    
    This allows a *-linux-mlibc host to correctly match with the mlibc userland
    rather than having the GNU/Linux (and similar) userland match override it.
---
 m4/libtool.m4 | 70 +++++++++++++++++++++++++++++------------------------------
 1 file changed, 35 insertions(+), 35 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 99b53ad0..4b4ea721 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2929,6 +2929,18 @@ irix5* | irix6* | nonstopux*)
   hardcode_into_libs=yes
   ;;
 
+*-mlibc)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  dynamic_linker='mlibc ld.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
 # No shared lib support for Linux oldld, aout, or coff.
 linux*oldld* | linux*aout* | linux*coff*)
   dynamic_linker=no
@@ -3040,18 +3052,6 @@ netbsd*)
   stdlibflag=
   ;;
 
-*-mlibc)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
-  soname_spec='$libname$release$shared_ext$major'
-  dynamic_linker='mlibc ld.so'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
 newsos6)
   version_type=linux # correct to gnu/linux during the next big refactor
   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
@@ -3713,12 +3713,12 @@ irix5* | irix6* | nonstopux*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-# This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+*-mlibc)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-*-mlibc)
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
@@ -4541,6 +4541,8 @@ m4_if([$1], [CXX], [
 	    ;;
 	esac
 	;;
+      *-mlibc)
+	;;
       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 	case $cc_basename in
 	  KCC*)
@@ -4607,8 +4609,6 @@ m4_if([$1], [CXX], [
 	;;
       netbsd* | netbsdelf*-gnu)
 	;;
-      *-mlibc)
-	;;
       *qnx* | *nto*)
         # QNX uses GNU C++, but need to define -shared option too, otherwise
         # it will coredump.
@@ -4869,6 +4869,12 @@ m4_if([$1], [CXX], [
       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
       ;;
 
+    *-mlibc)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+      ;;
+
     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
       case $cc_basename in
       # old Intel for x86_64, which still supported -KPIC.
@@ -4965,12 +4971,6 @@ m4_if([$1], [CXX], [
       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       ;;
 
-    *-mlibc)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-      ;;
-
     *nto* | *qnx*)
       # QNX uses GNU C++, but need to define -shared option too, otherwise
       # it will coredump.
@@ -5372,6 +5372,11 @@ _LT_EOF
       _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
       ;;
 
+    *-mlibc)
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      ;;
+
     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
       tmp_diet=no
       if test linux-dietlibc = "$host_os"; then
@@ -5452,11 +5457,6 @@ _LT_EOF
       fi
       ;;
 
-    *-mlibc)
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
-      ;;
-
     netbsd* | netbsdelf*-gnu)
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
@@ -5989,6 +5989,9 @@ _LT_EOF
       _LT_TAGVAR(link_all_deplibs, $1)=yes
       ;;
 
+    *-mlibc)
+      ;;
+
     linux*)
       case $cc_basename in
       tcc*)
@@ -6000,9 +6003,6 @@ _LT_EOF
       esac
       ;;
 
-    *-mlibc)
-      ;;
-
     netbsd* | netbsdelf*-gnu)
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
@@ -7141,6 +7141,10 @@ if test yes != "$_lt_caught_CXX_error"; then
         _LT_TAGVAR(inherit_rpath, $1)=yes
         ;;
 
+      *-mlibc)
+        _LT_TAGVAR(ld_shlibs, $1)=yes
+	;;
+
       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
         case $cc_basename in
           KCC*)
@@ -7306,10 +7310,6 @@ if test yes != "$_lt_caught_CXX_error"; then
 	esac
 	;;
 
-      *-mlibc)
-        _LT_TAGVAR(ld_shlibs, $1)=yes
-	;;
-
       netbsd*)
         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'


From MAILER-DAEMON Tue May 06 14:20:35 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uCMu8-00078z-Ds
	for mharc-libtool-commit@gnu.org; Tue, 06 May 2025 14:20:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uCMtt-0006xS-G4
 for libtool-commit@gnu.org; Tue, 06 May 2025 14:20:18 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uCMtt-00071A-3Z
 for libtool-commit@gnu.org; Tue, 06 May 2025 14:20:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 6DC4FC7AFAA; Tue,  6 May 2025 14:20:12 -0400 (EDT)
Date: Tue, 06 May 2025 14:20:11 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: doc: Explain how to specify library
 dependencies.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <174655561175.2547.13519192402500603053@vcs2.savannah.gnu.org>
Reply-To: Bruno Haible <bruno@clisp.org>
X-Git-Host: vcs2.savannah.gnu.org
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: 796e497ce62bfa5d649dbaf4598b24a29e07e304
X-Git-Newrev: 40bd49b6119f581d6604d1c67e4ccf7cfc520602
X-Git-Rev: 40bd49b6119f581d6604d1c67e4ccf7cfc520602
X-Git-NotificationType: ref_changed_plus_diff
X-Git-Multimail-Version: 1.6.dev
Auto-Submitted: auto-generated
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 May 2025 18:20:27 -0000

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 40bd49b6 doc: Explain how to specify library dependencies.
40bd49b6 is described below

commit 40bd49b6119f581d6604d1c67e4ccf7cfc520602
Author: Bruno Haible <bruno@clisp.org>
AuthorDate: Tue May 6 17:00:51 2025 +0200

    doc: Explain how to specify library dependencies.
    
    * doc/libtool.texi (Link mode): Explain how to specify dependencies to
    already installed libraries.
---
 doc/libtool.texi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/libtool.texi b/doc/libtool.texi
index 60ddab7a..ba64245e 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -1708,6 +1708,11 @@ Pass a linker-specific flag directly to the linker.
 Pass a link-specific flag to the compiler driver (@code{CC}) during linking.
 @end table
 
+Note: When the output file shall depend on an installed library, you
+cannot specify the library name as @code{@var{dir}/lib@var{name}.a} or
+@code{@var{dir}/lib@var{name}.so} as part of the @var{mode-args}.
+Instead, pass the arguments @code{-L@var{dir}} and @code{-l@var{name}}.
+
 If the @var{output-file} ends in @file{.la}, then a libtool library is
 created, which must be built only from library objects (@file{.lo} files).
 The @option{-rpath} option is required.  In the current implementation,


From MAILER-DAEMON Fri May 16 12:24:48 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uFxrc-00017c-6Q
	for mharc-libtool-commit@gnu.org; Fri, 16 May 2025 12:24:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uFxra-00015F-RG
 for libtool-commit@gnu.org; Fri, 16 May 2025 12:24:46 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uFxra-0006C6-GB
 for libtool-commit@gnu.org; Fri, 16 May 2025 12:24:46 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 86EF5C06183; Fri, 16 May 2025 12:24:45 -0400 (EDT)
Date: Fri, 16 May 2025 12:24:45 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: libtool: Update documentation
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <174741268489.12021.12218050488326257719@vcs2.savannah.gnu.org>
Reply-To: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-Git-Host: vcs2.savannah.gnu.org
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: 40bd49b6119f581d6604d1c67e4ccf7cfc520602
X-Git-Newrev: ad964ee1f5382075b195313d969fb0fe6d83c8e9
X-Git-Rev: ad964ee1f5382075b195313d969fb0fe6d83c8e9
X-Git-NotificationType: ref_changed_plus_diff
X-Git-Multimail-Version: 1.6.dev
Auto-Submitted: auto-generated
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 16 May 2025 16:24:47 -0000

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 ad964ee1 libtool: Update documentation
ad964ee1 is described below

commit ad964ee1f5382075b195313d969fb0fe6d83c8e9
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri May 16 19:08:18 2025 +0300

    libtool: Update documentation
    
    For many GNU/Linux systems, the shared library cache is not updated
    after a "make install". Some reasoning is outlined in the
    documentation now for users with instruction for how to update
    the shared library cache if desired.
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78321
    
    * build-aux/ltmain.in: Add informational note during build.
    * doc/notes.texi: Update.
---
 build-aux/ltmain.in |  8 ++++++++
 doc/notes.texi      | 24 ++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index aaf48f14..a948158e 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -2322,6 +2322,14 @@ func_mode_finish ()
       fi
       echo
 
+      echo "After a 'make install' for many GNU/Linux systems, 'ldconfig LIBDIR'"
+      echo "may need to be executed to help locate newly installed libraries,"
+      echo "but you should consult with a system administrator before updating"
+      echo "the shared library cache as this should be done with great care"
+      echo "and consideration. (See the 'Platform-specific configuration notes'"
+      echo "section of the documentation for more information.)"
+      echo
+
       echo "See any operating system documentation about shared libraries for"
       case $host in
 	solaris2.[6789]|solaris2.1[0-9])
diff --git a/doc/notes.texi b/doc/notes.texi
index 7b6ade8d..712f09ee 100644
--- a/doc/notes.texi
+++ b/doc/notes.texi
@@ -82,4 +82,28 @@ default. If this occurs for the dynamic library path, you may use the
 @command{autoconf} cache variables @code{lt_cv_sys_lib_search_path_spec} and
 @code{lt_cv_sys_lib_dlsearch_path_spec} respectively.
 
+@item
+For many GNU/Linux systems, the shared library cache is not updated after a
+@command{make install}. Instead, the user will need to manually execute
+@command{ldconfig 'LIBDIR'} to locate newly installed libraries. Users
+should consult a system administrator as this should be done with great
+care. Here are some considerations:
+
+@itemize
+@item
+Libtool is designed to be portable to many different operating systems, and
+these OSs behave in various ways. Some OSs will find a new library
+automatically if it is installed in the existing configured library paths.
+
+@item
+The library installed might not ever be intended to be used by the currently
+executing OS because it is part of new distribution builds.
+
+@item
+Sometimes libraries are installed privately, using hard-coded run-paths in
+their dependent binaries. This is very common when a different version of
+the software is to be run than the OS is designed to support.
+
+@end itemize
+
 @end itemize


From MAILER-DAEMON Mon May 19 12:48:16 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uH3ey-0003WL-I1
	for mharc-libtool-commit@gnu.org; Mon, 19 May 2025 12:48:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uH3ew-0003Uk-K0
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uH3ew-0007JA-6T
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 31337C045B5; Mon, 19 May 2025 12:48:13 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: development updated (ad964ee1 -> ee808d3f)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: ad964ee1f5382075b195313d969fb0fe6d83c8e9
X-Git-Newrev: ee808d3f3046d274efa751039849e403fb6e4e80
Auto-Submitted: auto-generated
Date: Mon, 19 May 2025 12:48:12 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 19 May 2025 16:48:15 -0000

ildumi pushed a change to branch development.

    from ad964ee1 libtool: Update documentation
     new e606cd23 Pick up clang_rt static archives compiler internal libraries
     new 2f505131 Allow statically linking compiler support libraries when linking a library
     new ee808d3f NEWS: Update for previous commits


Summary of changes:
 NEWS                |  6 ++++++
 build-aux/ltmain.in | 11 +++++++++--
 m4/libtool.m4       |  2 +-
 3 files changed, 16 insertions(+), 3 deletions(-)


From MAILER-DAEMON Mon May 19 12:48:18 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uH3f0-0003Xk-7J
	for mharc-libtool-commit@gnu.org; Mon, 19 May 2025 12:48:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uH3ew-0003V0-Ta
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:15 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uH3ew-0007JO-H4
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 58B06C045B5; Mon, 19 May 2025 12:48:14 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
References: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: ee808d3f3046d274efa751039849e403fb6e4e80
Auto-Submitted: auto-generated
Message-Id: <20250519164814.58B06C045B5@vcs2.savannah.gnu.org>
Date: Mon, 19 May 2025 12:48:14 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 19 May 2025 16:48:15 -0000

branch: development
commit ee808d3f3046d274efa751039849e403fb6e4e80
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Mon May 19 19:42:34 2025 +0300

    NEWS: Update for previous commits
---
 NEWS | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 10f7a1a7..9481aa8b 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,12 @@ NEWS - list of user-visible changes between releases of GNU Libtool
     building C++ shared libraries and modules, --enable-cxx-stdlib and
     --disable-cxx-stdlib.
 
+  - Allow statically linking GCC and Clang compiler support libraries
+    into shared libraries.
+
+  - Add linking clang_rt static archives compiler internal libraries by
+    their absolute path.
+
 ** Bug fixes:
 
   - Fix wrongly deduplicated compiler dependencies on linux.


From MAILER-DAEMON Mon May 19 12:48:18 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uH3f0-0003Xx-E0
	for mharc-libtool-commit@gnu.org; Mon, 19 May 2025 12:48:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uH3ew-0003Uw-Ti
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:15 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uH3ew-0007JI-Go
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 15F1EC045B6; Mon, 19 May 2025 12:48:13 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: =?utf-8?q?libtool=40gnu=2Eorg=2C_Martin_Storsj=C3=B6_?=@vcs2.savannah.gnu.org,
 =?utf-8?b?PG1hcnRpbkBtYXJ0aW4uc3Q+?=@vcs2.savannah.gnu.org
In-Reply-To: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
References: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 2f505131b5f29b0de6338bf9d13b7ceadf617d96
Auto-Submitted: auto-generated
Message-Id: <20250519164814.15F1EC045B6@vcs2.savannah.gnu.org>
Date: Mon, 19 May 2025 12:48:13 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 19 May 2025 16:48:15 -0000

branch: development
commit 2f505131b5f29b0de6338bf9d13b7ceadf617d96
Author: Martin Storsjö <martin@martin.st>
AuthorDate: Mon Aug 19 13:34:51 2019 +0300

    Allow statically linking compiler support libraries when linking a library
    
    For cases with deplibs_check_method="file_magic ..." (as it is for mingw),
    there were previously no way that a static library could be accepted
    here.
---
 build-aux/ltmain.in | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index a948158e..38b56a71 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -6101,8 +6101,15 @@ func_mode_link ()
 	  fi
 	  case $linkmode in
 	  lib)
-	    # Linking convenience modules into shared libraries is allowed,
-	    # but linking other static libraries is non-portable.
+	    # Linking convenience modules and compiler provided static libraries
+	    # into shared libraries is allowed, but linking other static
+	    # libraries is non-portable.
+	    case $deplib in
+	      */libgcc*.$libext | */libclang_rt*.$libext)
+		deplibs="$deplib $deplibs"
+		continue
+	      ;;
+	    esac
 	    case " $dlpreconveniencelibs " in
 	    *" $deplib "*) ;;
 	    *)


From MAILER-DAEMON Mon May 19 12:48:19 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uH3f0-0003YQ-QG
	for mharc-libtool-commit@gnu.org; Mon, 19 May 2025 12:48:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uH3ew-0003Um-Mz
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uH3ew-0007JB-A4
 for libtool-commit@gnu.org; Mon, 19 May 2025 12:48:14 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id A2948C045B4; Mon, 19 May 2025 12:48:13 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org, Manoj Gupta <manojgupta@chromium.org>
In-Reply-To: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
References: <174767329249.22544.18411519449727393107@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: e606cd2358dd526d79837ce9f98da159c1d02bf7
Auto-Submitted: auto-generated
Message-Id: <20250519164813.A2948C045B4@vcs2.savannah.gnu.org>
Date: Mon, 19 May 2025 12:48:13 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 19 May 2025 16:48:15 -0000

branch: development
commit e606cd2358dd526d79837ce9f98da159c1d02bf7
Author: Manoj Gupta <manojgupta@chromium.org>
AuthorDate: Wed Oct 10 10:50:23 2018 +0300

    Pick up clang_rt static archives compiler internal libraries
    
    Libtool checks only for libraries linked as -l* when trying to
    find internal compiler libraries. Clang, however uses the absolute
    path to link its internal libraries e.g. compiler_rt. This patch
    handles clang's statically linked libraries when finding internal
    compiler libraries.
    https://crbug.com/749263
    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
---
 m4/libtool.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 4b4ea721..8e0a46bc 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7758,7 +7758,7 @@ if AC_TRY_EVAL(ac_compile); then
   for p in `eval "$output_verbose_link_cmd"`; do
     case $prev$p in
 
-    -L* | -R* | -l*)
+    -L* | -R* | -l* | */libclang_rt.*.a)
        # Some compilers place space between "-{L,R,l}" and the path.
        # Remove the space.
        if test x-L = x"$p" ||


From MAILER-DAEMON Mon May 26 10:27:54 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYnv-0006DD-Nm
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:27:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnN-0005TU-NY
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnJ-0007zb-Gs
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 683DCC04DA8; Mon, 26 May 2025 10:27:12 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org, Michael Haubenwallner
 <michael.haubenwallner@ssi-schaefer.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 5eb259c3ba70b976b2f6dfd1b9c7a432fb53b2c8
Auto-Submitted: auto-generated
Message-Id: <20250526142713.683DCC04DA8@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:12 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 5eb259c3ba70b976b2f6dfd1b9c7a432fb53b2c8
Author: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
AuthorDate: Tue May 16 11:49:05 2017 +0200

    libtool.m4: preload valid C symbol names only
    
    * m4/libtool.m4 (global_symbol_to_import, global_symbol_to_cdecl,
    global_symbol_to_c_name_address,
    global_symbol_to_c_name_address_lib_prefix): List valid C symbol names
    only in lt_<modname>_LTX_preloaded_symbols array.
---
 m4/libtool.m4 | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index bf9e780f..336dc88a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4135,13 +4135,13 @@ esac
 
 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   # Gets list of data symbols to import.
-  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
+  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/\1/p'"
   # Adjust the below global symbol transforms to fixup imported variables.
-  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
-  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
+  lt_cdecl_hook=" -e 's/^I .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/extern __declspec(dllimport) char \1;/p'"
+  lt_c_name_hook=" -e 's/^I .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"\1\", (void *) 0},/p'"
   lt_c_name_lib_hook="\
-  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
-  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
+  -e 's/^I .* \(lib[[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"\1\", (void *) 0},/p'\
+  -e 's/^I .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"lib\1\", (void *) 0},/p'"
 else
   # Disable hooks by default.
   lt_cv_sys_global_symbol_to_import=
@@ -4155,22 +4155,22 @@ fi
 # so use this general approach.
 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
 $lt_cdecl_hook\
-" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
-" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
+" -e 's/^T .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/extern int \1();/p'"\
+" -e 's/^$symcode$symcode* .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/extern char \1;/p'"
 
 # Transform an extracted symbol line into symbol name and symbol address
 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
 $lt_c_name_hook\
 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
-" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
+" -e 's/^$symcode$symcode* .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"\1\", (void *) \&\1},/p'"
 
 # Transform an extracted symbol line into symbol name with lib prefix and
 # symbol address.
 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
 $lt_c_name_lib_hook\
 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
-" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
-" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
+" -e 's/^$symcode$symcode* .* \(lib[[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"\1\", (void *) \&\1},/p'"\
+" -e 's/^$symcode$symcode* .* \([[a-zA-Z_]][[a-zA-Z0-9_]]*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 
 # Handle CRLF in mingw tool chain
 opt_cr=


From MAILER-DAEMON Mon May 26 10:27:56 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYnz-0006Q8-SZ
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:27:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnI-0005Qv-Nb
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnG-0007zB-QB
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 86701C04DAB; Mon, 26 May 2025 10:27:10 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: e0c329ac0e6bd8f1f6849bbbe465934b8c1f5ab6
Auto-Submitted: auto-generated
Message-Id: <20250526142710.86701C04DAB@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:10 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:21 -0000
X-List-Received-Date: Mon, 26 May 2025 14:27:21 -0000

branch: development
commit e0c329ac0e6bd8f1f6849bbbe465934b8c1f5ab6
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Mon Apr 7 19:55:23 2025 +0300

    libtool: Alter expected line endings in testsuite
    
    When comparing expected output in LT_AT_CHECK_EXECUTE, several tests
    fail with mismatched line endings. This patch should fix Windows
    environments that have CRLF text line endings disabled and only use
    the LF character for line endings.
    
    * tests/testsuite.at: Removed '\r' from awk's printf command.
---
 tests/testsuite.at | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/testsuite.at b/tests/testsuite.at
index a080d70a..0d8c64e3 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -284,7 +284,9 @@ AT_CHECK([test -z "$leftovers"])
 m4_define([LT_AT_HOST_DATA],
 [AT_DATA([$1], [$2])
 case $host_os in mingw* | windows*)
-  awk '{printf ("%s\r\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1 ;;
+   awk '{printf ("%s\r\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1;;
+cygwin*)
+   awk '{printf ("%s\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1;;
 esac])
 
 


From MAILER-DAEMON Mon May 26 10:27:57 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo0-0006U6-RI
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:27:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnI-0005Qt-P5
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnG-0007z8-AX
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:11 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 68B88C04DA7; Mon, 26 May 2025 10:27:09 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: development updated (ee808d3f -> 605bbd1a)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: ee808d3f3046d274efa751039849e403fb6e4e80
X-Git-Newrev: 605bbd1a3b8313f0fe7dd42a5ce19f01f7a42c48
Auto-Submitted: auto-generated
Date: Mon, 26 May 2025 10:27:09 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:22 -0000

ildumi pushed a change to branch development.

    from ee808d3f NEWS: Update for previous commits
     new 4ded381a libtool: Fix mishandling compiler flags with MSVC tools
     new b32b7482 testsuite.at: Update testsuite config for MSVC
     new e0c329ac libtool: Alter expected line endings in testsuite
     new 4013a646 tagdemo.at: Update for MSVC
     new 46b9dbe5 tests: Include check for __CYGWIN__ for crossbuilds
     new d27d1787 libtoolize.in: Create symlinks with mklink for MSVC
     new 240816b3 libtool.m4: For MS dumpbin drop CR first.
     new 5eb259c3 libtool.m4: preload valid C symbol names only
     new 021a79ba libtoolize.at: Update checks based on linker used
     new 1377b68b ltmain.in: Fix hang with cmd.exe in MSYS
     new 64b48f0b ltmain.in: Add 'S_ISDIR' definition for MSVC
     new f49da6ca libtool: Fix MSVC cl.exe .exp extension collision
     new c57cf8fa inherited_flags.at: Fix test on MSVC
     new 605bbd1a tests: Skip failing tests on MSVC


Summary of changes:
 build-aux/ltmain.in      |  53 ++++++++++++++++--------
 libtoolize.in            |  27 ++++++++++++
 m4/libtool.m4            | 104 +++++++++++++++++++++++++++--------------------
 tests/demo.at            |   2 +-
 tests/deplibs-mingw.at   |   5 +++
 tests/flags.at           |   8 ++--
 tests/inherited_flags.at |  15 ++++---
 tests/libtoolize.at      |  21 ++++++++--
 tests/lt_dlexit.at       |   8 +++-
 tests/stresstest.at      |   6 +++
 tests/tagdemo.at         |  58 ++++++++++++--------------
 tests/testsuite.at       |  18 +++++++-
 12 files changed, 213 insertions(+), 112 deletions(-)


From MAILER-DAEMON Mon May 26 10:27:58 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo1-0006ZL-OB
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:27:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnM-0005TS-Bh
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnI-0007zQ-C1
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 0A2F9C04DAE; Mon, 26 May 2025 10:27:12 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: d27d17874b967335b16a7d7660adc900a7a3b937
Auto-Submitted: auto-generated
Message-Id: <20250526142712.0A2F9C04DAE@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:11 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit d27d17874b967335b16a7d7660adc900a7a3b937
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Dec 11 18:43:47 2024 +0200

    libtoolize.in: Create symlinks with mklink for MSVC
    
    Symlink files are not generated properly with 'ln -s' for MSVC to
    process, so mklink is used, which swaps the argument order of target
    and link_name. This also requires absolute paths, generated with the
    use of cygpath.
    
    * libtoolize.in: Check if linking with mklink and update processing.
---
 libtoolize.in | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/libtoolize.in b/libtoolize.in
index 77d0c9ed..fe8abe74 100644
--- a/libtoolize.in
+++ b/libtoolize.in
@@ -437,6 +437,33 @@ func_copy ()
     else
       my_copycmd=$LN_S
       my_copy_type=linking
+
+      # The Windows linker, mklink, swaps link_name and target.
+      case $my_copycmd in
+      *mklink*)
+        my_temp=$my_destfile
+        my_destfile=$my_srcfile
+        my_srcfile=$my_temp
+
+        my_copy_msg="$my_copy_type file '$my_destfile'"
+        $opt_verbose && my_copy_msg="$my_copycmd $my_srcfile $my_destdir"
+
+        my_destfile=`cygpath -aw "$my_destfile"`
+        my_srcfile=`cygpath -aw "$my_srcfile"`
+
+        if test -d "$my_destfile"; then
+          case $host_os,$build_os in
+          mingw*,cygwin*)
+            my_copycmd="$my_copycmd /d" ;;
+          mingw*,*) # MSYS
+            my_copycmd="$my_copycmd //d" ;;
+          *)
+            my_copycmd="$my_copycmd /d" ;;
+          esac
+        fi
+      ;;
+      *) ;;
+      esac
     fi
     my_copy_msg="$my_copy_type file '$my_destfile'"
     $opt_verbose && my_copy_msg="$my_copycmd $my_srcfile $my_destdir"


From MAILER-DAEMON Mon May 26 10:27:59 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo2-0006dY-Kw
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:27:59 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Tc-16
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnL-0007zj-QT
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id B1831C04DA7; Mon, 26 May 2025 10:27:14 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 64b48f0bbd126c209895b163b0a4571d96778d9a
Auto-Submitted: auto-generated
Message-Id: <20250526142715.B1831C04DA7@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:14 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 64b48f0bbd126c209895b163b0a4571d96778d9a
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Mar 26 17:19:39 2025 +0200

    ltmain.in: Add 'S_ISDIR' definition for MSVC
    
    Several test failures occur from fix for sr #111191 with MSVC, which is
    fixed by defining S_ISDIR with a different variable name, MSVC_ISDIR.
    
      error LNK2019: unresolved external symbol S_ISDIR referenced in func check_executable
    
    * build-aux/ltmain.in: Define and use macro MSVC_ISDIR.
---
 build-aux/ltmain.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index bc1457ed..af014430 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -3859,6 +3859,7 @@ int setenv (const char *, const char *, int);
 # define getcwd  _getcwd
 # define putenv  _putenv
 # define S_IXUSR _S_IEXEC
+# define MSVC_ISDIR(m)(((m) & S_IFMT) == S_IFDIR)
 #elif defined __MINGW32__
 # define setmode _setmode
 # define stat    _stat
@@ -4254,8 +4255,13 @@ check_executable (const char *path)
   if ((!path) || (!*path))
     return 0;
 
+#ifdef _MSC_VER
+  if ((stat (path, &st) >= 0) && !MSVC_ISDIR (st.st_mode)
+      && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+#else
   if ((stat (path, &st) >= 0) && !S_ISDIR (st.st_mode)
       && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+#endif
     return 1;
   else
     return 0;


From MAILER-DAEMON Mon May 26 10:28:01 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo3-0006kQ-UK
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Th-1Z
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnL-0007zi-OG
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 95183C04DAB; Mon, 26 May 2025 10:27:14 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 1377b68b4aed0d6ee3c390131eb763d26e5b642d
Auto-Submitted: auto-generated
Message-Id: <20250526142714.95183C04DAB@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:14 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 1377b68b4aed0d6ee3c390131eb763d26e5b642d
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Feb 19 18:58:16 2025 +0200

    ltmain.in: Fix hang with cmd.exe in MSYS
    
    Translating file paths from MSYS to W32 has been causing libtool to
    indefinitely hang when 'cmd.exe //c' is called. Instead, 'cygpath' is
    packaged on MSYS, so it will now handle the path conversion.
    
    * build-aux/ltmain.in: Replace 'cmd.exe //c' with 'cygpath' usage.
---
 build-aux/ltmain.in | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index d792be2b..bc1457ed 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -1029,9 +1029,14 @@ func_convert_core_msys_to_w32 ()
 {
   $debug_cmd
 
-  # awkward: cmd appends spaces to result
-  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
-    $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
+  # Since MSYS is packaged with cygpath, call cygpath in $PATH; no need
+  # to use LT_CYGPATH in this case.
+  func_convert_core_msys_to_w32_result=`cygpath "$@" 2>/dev/null |
+	$SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
+  if test "$?" -ne 0; then
+      # on failure, ensure result is empty
+      func_convert_core_msys_to_w32_result=
+  fi
 }
 #end: func_convert_core_msys_to_w32
 
@@ -1170,7 +1175,7 @@ func_convert_file_msys_to_w32 ()
 
   func_to_host_file_result=$1
   if test -n "$1"; then
-    func_convert_core_msys_to_w32 "$1"
+    func_convert_core_msys_to_w32 -w "$1"
     func_to_host_file_result=$func_convert_core_msys_to_w32_result
   fi
   func_convert_file_check "$1" "$func_to_host_file_result"
@@ -1222,7 +1227,7 @@ func_convert_file_msys_to_cygwin ()
 
   func_to_host_file_result=$1
   if test -n "$1"; then
-    func_convert_core_msys_to_w32 "$1"
+    func_convert_core_msys_to_w32 -w "$1"
     func_cygpath -u "$func_convert_core_msys_to_w32_result"
     func_to_host_file_result=$func_cygpath_result
   fi
@@ -1324,7 +1329,7 @@ func_convert_path_msys_to_w32 ()
     # and winepath ignores them completely.
     func_stripname : : "$1"
     func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+    func_convert_core_msys_to_w32 -w -p "$func_to_host_path_tmp1"
     func_to_host_path_result=$func_convert_core_msys_to_w32_result
     func_convert_path_check : ";" \
       "$func_to_host_path_tmp1" "$func_to_host_path_result"
@@ -1389,7 +1394,7 @@ func_convert_path_msys_to_cygwin ()
     # See func_convert_path_msys_to_w32:
     func_stripname : : "$1"
     func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+    func_convert_core_msys_to_w32 -w -p "$func_to_host_path_tmp1"
     func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
     func_to_host_path_result=$func_cygpath_result
     func_convert_path_check : : \


From MAILER-DAEMON Mon May 26 10:28:02 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo5-0006nI-1i
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnI-0005Qx-Qz
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnG-0007z9-Dp
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id C46CCC04DA1; Mon, 26 May 2025 10:27:09 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 4ded381a6f09cb761a05403450b5e34fec945f5a
Auto-Submitted: auto-generated
Message-Id: <20250526142709.C46CCC04DA1@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:09 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:22 -0000
X-List-Received-Date: Mon, 26 May 2025 14:27:22 -0000

branch: development
commit 4ded381a6f09cb761a05403450b5e34fec945f5a
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Tue Jan 7 19:34:11 2025 +0200

    libtool: Fix mishandling compiler flags with MSVC tools
    
    With MSVC, linker flags were not properly being linked in during a
    compile command. A check has been added to verify if there are linker
    flags set and then use a different command when linking.
    
    Fixes applied for bug#74175.
    
    * build-aux/ltmain.in: Fix command parser for '-Wl' option for MSVC.
    * m4/libtool.m4: Fix MSVC compile commands.
    * tests/flags.at: Use '$GREP --' instead of '$FGREP' when comparing with
      stdout.
---
 build-aux/ltmain.in | 18 ++++++++++++++----
 m4/libtool.m4       | 20 ++++++++++++++++----
 tests/flags.at      |  8 ++++----
 3 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 38b56a71..d792be2b 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5155,8 +5155,13 @@ func_mode_link ()
 	  continue
 	  ;;
 	xlinker)
-	  func_append linker_flags " $qarg"
-	  func_append compiler_flags " $wl$qarg"
+	  func_append linker_flags "$qarg,"
+	  # Args in the var 'compiler_flags' causes warnings in MSVC
+	  func_cc_basename "$CC"
+	  case $func_cc_basename_result in
+	    cl|cl.exe) ;;
+	    *) func_append compiler_flags " $wl$qarg" ;;
+	  esac
 	  prev=
 	  func_append compile_command " $wl$qarg"
 	  func_append finalize_command " $wl$qarg"
@@ -5530,8 +5535,13 @@ func_mode_link ()
 	  IFS=$save_ifs
           func_quote_arg pretty "$flag"
 	  func_append arg " $wl$func_quote_arg_result"
-	  func_append compiler_flags " $wl$func_quote_arg_result"
-	  func_append linker_flags " $func_quote_arg_result"
+	  # Args in the var 'compiler_flags' causes warnings in MSVC
+	  func_cc_basename "$CC"
+	  case $func_cc_basename_result in
+	     cl|cl.exe) ;;
+	     *) func_append compiler_flags " $wl$func_quote_arg_result" ;;
+	  esac
+	  func_append linker_flags "$func_quote_arg_result,"
 	done
 	IFS=$save_ifs
 	func_stripname ' ' '' "$arg"
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 8e0a46bc..c97fdd3b 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -5776,6 +5776,8 @@ _LT_EOF
 	# Tell ltmain to make .dll files, not .so files.
 	shrext_cmds=.dll
 	# FIXME: Setting linknames here is a bad hack.
+	# A check exists to verify if there are linker flags, which will use
+	# different commands when linking.
 	_LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
             cp "$export_symbols" "$output_objdir/$soname.def";
@@ -5783,7 +5785,11 @@ _LT_EOF
           else
             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
           fi~
-          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+          if test -z "$linker_flags"; then
+             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+          else
+             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+          fi~
           linknames='
 	# The linker will not automatically build a static lib if we build a DLL.
 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
@@ -5815,7 +5821,7 @@ _LT_EOF
 	# Tell ltmain to make .dll files, not .so files.
 	shrext_cmds=.dll
 	# FIXME: Setting linknames here is a bad hack.
-	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
+	_LT_TAGVAR(archive_cmds, $1)='$CC -Fe$lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 	# The linker will automatically build a .lib file if we build a DLL.
 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 	# FIXME: Should let the user specify the lib program.
@@ -6856,14 +6862,20 @@ if test yes != "$_lt_caught_CXX_error"; then
 	  # Tell ltmain to make .dll files, not .so files.
 	  shrext_cmds=.dll
 	  # FIXME: Setting linknames here is a bad hack.
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+	  # A check exists to verify if there are linker flags, which will use
+	  # different commands when linking.
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
               cp "$export_symbols" "$output_objdir/$soname.def";
               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
             else
               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
             fi~
-            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+            if test -z "$linker_flags"; then
+               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+            else
+               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+            fi~
             linknames='
 	  # The linker will not automatically build a static lib if we build a DLL.
 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
diff --git a/tests/flags.at b/tests/flags.at
index b13ed0bd..82cfd8a6 100644
--- a/tests/flags.at
+++ b/tests/flags.at
@@ -129,7 +129,7 @@ for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
   -Wc, | -Xcompiler\ )
     AT_CHECK([$LIBTOOL -n --tag=lt_tag --mode=compile $compile ]dnl
 	     [$flag-foo -c $source], [], [stdout], [ignore])
-    AT_CHECK([$FGREP " -foo" stdout], [], [ignore])
+    AT_CHECK([$GREP -- " -foo" stdout], [], [ignore])
     flag_prefix_prog=
     flag_prefix_lib=
     flags_in_liblink=$compiler_flags_in_liblink
@@ -143,7 +143,7 @@ for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
 
   AT_CHECK([$LIBTOOL -n --tag=lt_tag --mode=link $link ]dnl
 	   [-o program$EXEEXT a.lo $flag-foo], [], [stdout], [ignore])
-  AT_CHECK([$FGREP " $flag_prefix_prog-foo" stdout], [], [ignore])
+  AT_CHECK([$GREP -- "$flag_prefix_prog-foo" stdout], [], [ignore])
 
   eval set x "$library_and_module"
   for output
@@ -152,9 +152,9 @@ for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
     AT_CHECK([$LIBTOOL -n --tag=lt_tag --mode=link $link ]dnl
 	     [-o $output a.lo -rpath /nowhere $flag-foo], [], [stdout], [ignore])
     if $flags_in_liblink; then
-      AT_CHECK([$FGREP " $flag_prefix_lib-foo" stdout], [], [ignore])
+      AT_CHECK([$GREP -- "$flag_prefix_lib-foo" stdout], [], [ignore])
     else
-      AT_CHECK([$FGREP " $flag_prefix_lib-foo" stdout], [1])
+      AT_CHECK([$GREP -- " $flag_prefix_lib-foo" stdout], [1])
     fi
   done
 done


From MAILER-DAEMON Mon May 26 10:28:03 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo6-0006vl-GH
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnM-0005TR-5r
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnI-0007zP-C1
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 3A8C8C04DAD; Mon, 26 May 2025 10:27:11 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 46b9dbe50c4d5796203a063d54c2ea47ec3089d2
Auto-Submitted: auto-generated
Message-Id: <20250526142711.3A8C8C04DAD@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:10 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 46b9dbe50c4d5796203a063d54c2ea47ec3089d2
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Dec 11 18:43:47 2024 +0200

    tests: Include check for __CYGWIN__ for crossbuilds
    
    * tests/demo.at, tests/lt_dlexit.at: Add __CYGWIN__ to check for
    crossbuilds of build cygwin with host mingw and the MSVC toolchain.
---
 tests/demo.at      | 2 +-
 tests/lt_dlexit.at | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/demo.at b/tests/demo.at
index 036e434e..1b4a2e89 100644
--- a/tests/demo.at
+++ b/tests/demo.at
@@ -152,7 +152,7 @@ AT_DATA([foo.h],
 #  endif
 #endif
 
-#if (defined _WIN32 || defined _WIN32_WCE) && !defined __GNUC__
+#if (defined _WIN32 || defined _WIN32_WCE || __CYGWIN__) && !defined __GNUC__
 # ifdef BUILDING_LIBHELLO
 #  ifdef DLL_EXPORT
 #   define LIBHELLO_SCOPE extern __declspec (dllexport)
diff --git a/tests/lt_dlexit.at b/tests/lt_dlexit.at
index 19adeec4..51f26f23 100644
--- a/tests/lt_dlexit.at
+++ b/tests/lt_dlexit.at
@@ -115,8 +115,12 @@ AT_DATA([b1.c],
 [[#ifdef __cplusplus
 extern "C" {
 #endif
-#if defined DLL_EXPORT && defined _WIN32 && defined _MSC_VER
-#  define LIBA1_SCOPE extern __declspec (dllimport)
+#if defined DLL_EXPORT
+#  if defined __CYGWIN__ || defined _WIN32 || defined WIN32
+#    if defined _MSC_VER
+#      define LIBA1_SCOPE extern __declspec (dllimport)
+#    endif
+#  endif
 #endif
 #if !defined LIBA1_SCOPE
 #  define LIBA1_SCOPE extern


From MAILER-DAEMON Mon May 26 10:28:04 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYo7-0006zb-Gs
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Tj-1e
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnM-0007zQ-PB
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id AC1ADC04DAE; Mon, 26 May 2025 10:27:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: c57cf8fa7589fa82063be1a2193f152e8769d1a2
Auto-Submitted: auto-generated
Message-Id: <20250526142716.AC1ADC04DAE@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:29 -0000

branch: development
commit c57cf8fa7589fa82063be1a2193f152e8769d1a2
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Apr 17 17:28:50 2025 +0300

    inherited_flags.at: Fix test on MSVC
    
    * tests/inherited_flags.at: Modify grep to limit search range.
---
 tests/inherited_flags.at | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tests/inherited_flags.at b/tests/inherited_flags.at
index 06db4ca9..5a54f6d3 100644
--- a/tests/inherited_flags.at
+++ b/tests/inherited_flags.at
@@ -24,6 +24,9 @@
 AT_SETUP([inherited_linker_flags])
 AT_KEYWORDS([libtool])
 
+# Skip if "disable shared libraries" feature is set
+AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && (exit 77)], [1], [ignore])
+
 AT_DATA([foo.c],
 [
 int foo() { return 1;}
@@ -77,7 +80,6 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo
 # 'llt_[[ui]]nlikely_existing_lib.*llt_[[ui]]nlikely_existing_lib'
 # here.  This fails on win32/MSVC because the generated command lines have a
 # different syntax.  So drop the first 'l'.
-AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && (exit 77)], [1], [ignore])
 AT_CHECK([$GREP 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
 	 [0],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent  ./libfoo.la ./libbar.la],
@@ -85,18 +87,19 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main
 AT_CHECK([$GREP 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
 	 [0],[ignore],[ignore])
 
-# now check for duplicates
+# If duplicate -l flags occur in a single link command, error.
+# For MSVC, multiple link commands are wrapped in, so limit grep.
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la],
 	 [ignore],[stdout],[ignore])
-AT_CHECK([$GREP 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_inlikely_existing_lib[^;]*lt_inlikely_existing_lib' stdout],
 	 [1],[ignore],[ignore])
-AT_CHECK([$GREP 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_unlikely_existing_lib[^;]*lt_unlikely_existing_lib' stdout],
 	 [1],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent  ./libfoo.la ./libbar.la ./libboth.la],
 	[ignore],[stdout],[ignore])
-AT_CHECK([$GREP 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_inlikely_existing_lib[^;]*lt_inlikely_existing_lib' stdout],
 	 [1],[ignore],[ignore])
-AT_CHECK([$GREP 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_unlikely_existing_lib[^;]*lt_unlikely_existing_lib' stdout],
 	 [1],[ignore],[ignore])
 
 mv libboth.la libboth.la.bak


From MAILER-DAEMON Mon May 26 10:28:06 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoA-0007Bw-0C
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnI-0005Qz-Qu
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnG-0007zA-FE
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 4A93FC04DA8; Mon, 26 May 2025 10:27:10 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: b32b74827fb27cac5e9b2c64873b4548c4b837f6
Auto-Submitted: auto-generated
Message-Id: <20250526142710.4A93FC04DA8@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:09 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:22 -0000

branch: development
commit b32b74827fb27cac5e9b2c64873b4548c4b837f6
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Dec 11 18:43:47 2024 +0200

    testsuite.at: Update testsuite config for MSVC
    
    * tests/testsuite.at: Make symlink tool mlink for MSVC.
---
 tests/testsuite.at | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/testsuite.at b/tests/testsuite.at
index c5c85ec0..a080d70a 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -32,7 +32,7 @@ for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do
 done
 export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
 eval `$LIBTOOL --config | $EGREP '^(objdir|objext)'`
-eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_alias|to_host_file_cmd|to_tool_file_cmd)='`
+eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_os|build_alias|to_host_file_cmd|to_tool_file_cmd)='`
 configure_options=--prefix=/nonexistent
 if test -n "$host_alias"; then
   configure_options="$configure_options --host $host_alias"
@@ -72,6 +72,18 @@ unset MFLAGS MAKEFLAGS MAKELEVEL __MKLVL__ MAKE_JOBS_FIFO
 case $host_os in
 aix*) umask o-rwx ;;
 esac
+
+# Use mklink when symlinking for MSVC
+if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then
+  case $host_os,$build_os in
+  mingw*,cygwin*)
+    LN_S="cmd /c mklink" ;;
+  mingw*,*) # MSYS
+    LN_S="cmd //c mklink" ;;
+  *)
+    LN_S="cmd /c mklink" ;;
+  esac
+fi
 m4_divert_pop([PREPARE_TESTS])dnl
 
 


From MAILER-DAEMON Mon May 26 10:28:08 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoB-0007Je-JP
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnJ-0005RC-NW
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnG-0007zC-Rg
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:12 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id BEB83C04DAC; Mon, 26 May 2025 10:27:10 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 4013a646f0ee4c93b9a0d0dd805bd9a81fd24fe7
Auto-Submitted: auto-generated
Message-Id: <20250526142710.BEB83C04DAC@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:10 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 4013a646f0ee4c93b9a0d0dd805bd9a81fd24fe7
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Dec 11 18:43:47 2024 +0200

    tagdemo.at: Update for MSVC
    
    * tests/tagdemo.at: Remove namespace support check, add iostream.h
    support check, and make iostream the default include, not iostream.h.
---
 tests/tagdemo.at | 58 ++++++++++++++++++++++++--------------------------------
 1 file changed, 25 insertions(+), 33 deletions(-)

diff --git a/tests/tagdemo.at b/tests/tagdemo.at
index 73ff891b..2e57ff58 100644
--- a/tests/tagdemo.at
+++ b/tests/tagdemo.at
@@ -42,27 +42,25 @@ AC_PROG_CC_C_O
 AC_PROG_CXX
 AC_PROG_CXXCPP
 
-# Check for namespace support and new-style headers
 AC_LANG_PUSH([C++])
-AC_MSG_CHECKING([whether the compiler implements namespaces])
-AC_COMPILE_IFELSE(
-    [AC_LANG_PROGRAM([[namespace A { namespace B { int i = 0; }}]],
-		     [[using namespace A::B; return i;]])],
-    [AC_MSG_RESULT([yes])
-     AC_DEFINE([HAVE_NAMESPACES],[1],
-	       [define if the compiler implements namespaces])],
-    [AC_MSG_RESULT([no])])
 
 AC_MSG_CHECKING([whether the compiler has ISO C++ iostream])
 AC_COMPILE_IFELSE(
     [AC_LANG_PROGRAM([[#include <iostream>
-#ifdef HAVE_NAMESPACES
-using namespace std;
-#endif ]], [[cout << "bingo\n"; return 0;]])],
+ ]], [[std::cout << "bingo\n"; return 0;]])],
     [AC_MSG_RESULT([yes])
      AC_DEFINE([HAVE_IOSTREAM],[1],
 	       [define if the compiler has ISO C++ iostream])],
     [AC_MSG_RESULT([no])])
+
+AC_MSG_CHECKING([whether the compiler has iostream.h])
+AC_COMPILE_IFELSE(
+    [AC_LANG_PROGRAM([[#include <iostream.h>
+ ]], [[std::cout << "bingo\n"; return 0;]])],
+    [AC_MSG_RESULT([yes])
+     AC_DEFINE([HAVE_IOSTREAM_H],[1],
+	       [define if the compiler has iostream.h])],
+    [AC_MSG_RESULT([no])])
 AC_LANG_POP([C++])
 
 AC_LANG([C++])
@@ -109,22 +107,19 @@ AT_DATA([main.cpp],
 [[#include <config.h>
 #if HAVE_IOSTREAM
 # include <iostream>
-#else
+#elif HAVE_IOSTREAM_H
 # include <iostream.h>
+#else
+# include <iostream>
 #endif
 
 #include "foo.h"
 #include "baz.h"
 #include "conv.h"
 
-#if HAVE_NAMESPACES
-namespace std { }
-using namespace std;
-#endif
-
 int main (int, char *[])
 {
-  cout << "Welcome to GNU libtool tagdemo C++!" << endl;
+  std::cout << "Welcome to GNU libtool tagdemo C++!" << std::endl;
 
   foobar_derived FB;
   // Instantiate the derived class.
@@ -134,12 +129,12 @@ int main (int, char *[])
 
   int value = fb->hello();
 
-  cout << "foobar::hello returned: " << value << endl;
+  std::cout << "foobar::hello returned: " << value << std::endl;
   if (value = HELLO_RET)
-    cout << "foobar::hello is ok!" << endl;
+    std::cout << "foobar::hello is ok!" << std::endl;
 
   if (fb->foo() == FOO_RET)
-    cout << "foobar::foo is ok!" << endl;
+    std::cout << "foobar::foo is ok!" << std::endl;
 
   // --------------
 
@@ -152,12 +147,12 @@ int main (int, char *[])
   // barbaz_derived::baz() should return FOO_RET since it calls
   // foobar_derived::foo(), which in turn calls ::foo().
   if (bb->baz() == FOO_RET)
-    cout << "barbaz::baz is ok!" << endl;
+    std::cout << "barbaz::baz is ok!" << std::endl;
 
   // --------------
 
   if (convenience())
-    cout << "convenience is ok!" << endl;
+    std::cout << "convenience is ok!" << std::endl;
 
   return 0;
 }
@@ -201,15 +196,12 @@ public:
 
 AT_DATA([foo.cpp],
 [[#include <config.h>
-#ifdef HAVE_IOSTREAM
+#if HAVE_IOSTREAM
 # include <iostream>
-#else
+#elif HAVE_IOSTREAM_H
 # include <iostream.h>
-#endif
-
-#ifdef HAVE_NAMESPACES
-namespace std { }
-using namespace std;
+#else
+# include <iostream>
 #endif
 
 #include <math.h>
@@ -220,14 +212,14 @@ using namespace std;
 int
 foo(void)
 {
-  cout << "cos (0.0) = " << (double) cos ((double) 0.0) << endl;
+  std::cout << "cos (0.0) = " << (double) cos ((double) 0.0) << std::endl;
   return FOO_RET;
 }
 
 int
 hello(void)
 {
-  cout << "** This is libfoo (tagdemo) **" << endl;
+  std::cout << "** This is libfoo (tagdemo) **" << std::endl;
   return HELLO_RET;
 }
 


From MAILER-DAEMON Mon May 26 10:28:12 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoF-0007fo-Oj
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnN-0005TW-P1
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnI-0007za-Mb
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 6D5EDC04DA1; Mon, 26 May 2025 10:27:12 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org, Michael Haubenwallner
 <michael.haubenwallner@ssi-schaefer.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 240816b3106f29d5e21139f631f96fa2efc5f3db
Auto-Submitted: auto-generated
Message-Id: <20250526142712.6D5EDC04DA1@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:12 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 240816b3106f29d5e21139f631f96fa2efc5f3db
Author: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
AuthorDate: Thu May 11 14:10:17 2017 +0200

    libtool.m4: For MS dumpbin drop CR first.
    
    On Cygwin, gawk-4.1.4-3 and newer do not treat the input stream as text
    any more, leaving us behind with carriage return in symbol names.
    * m4/libtool.m4 (lt_cv_sys_global_symbol_pipe): In AWK script for MS
    dumpbin drop CR first.
---
 m4/libtool.m4 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index c97fdd3b..bf9e780f 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4191,8 +4191,10 @@ for ac_symprfx in "" "_"; do
     # Fake it for dumpbin and say T for any non-static function,
     # D for any global variable and I for any imported variable.
     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
-    # which start with @ or ?.
+    # which start with @ or ?.  And Cygwin gawk-4.1.4-3 and newer
+    # treats input as binary, have to drop carriage return first.
     lt_cv_sys_global_symbol_pipe="$AWK ['"\
+"     {sub(/\\r\$/,\"\")};"\
 "     {last_section=section; section=\$ 3};"\
 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\


From MAILER-DAEMON Mon May 26 10:28:13 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoG-0007lE-HM
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Te-20
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnK-0007zh-65
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:16 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 0F577C04DA9; Mon, 26 May 2025 10:27:13 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 021a79ba3ecbb53f9dba93901f134cdc672c5a0b
Auto-Submitted: auto-generated
Message-Id: <20250526142714.0F577C04DA9@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:13 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:26 -0000

branch: development
commit 021a79ba3ecbb53f9dba93901f134cdc672c5a0b
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Mon Dec 30 17:55:30 2024 +0200

    libtoolize.at: Update checks based on linker used
    
    If mklink is used for symlinking files, the expout will not match, so
    stdout is used instead.
    
    * tests/libtoolize.at: Use stdout for checks instead of expout on MSVC.
---
 tests/libtoolize.at | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/tests/libtoolize.at b/tests/libtoolize.at
index 43f7e72d..4e9d4281 100644
--- a/tests/libtoolize.at
+++ b/tests/libtoolize.at
@@ -521,7 +521,12 @@ AT_SETUP([copy ltdl.m4 with shared macro directory])
 
 _LT_AT_LTDL_SETUP
 
-LT_AT_CHECK_LIBTOOLIZE([--ltdl], 0, expout)
+case $LN_S in
+*mklink*)
+  LT_AT_CHECK_LIBTOOLIZE([--ltdl], 0, stdout) ;;
+*)
+  LT_AT_CHECK_LIBTOOLIZE([--ltdl], 0, expout) ;;
+esac
 
 AT_CLEANUP
 
@@ -533,7 +538,12 @@ AT_SETUP([correctly parse LTDL_INIT from configure.ac])
 
 _LT_AT_LTDL_SETUP
 
-LT_AT_CHECK_LIBTOOLIZE([], 0, expout)
+case $LN_S in
+*mklink*)
+  LT_AT_CHECK_LIBTOOLIZE([], 0, stdout) ;;
+*)
+  LT_AT_CHECK_LIBTOOLIZE([], 0, expout) ;;
+esac
 
 AT_CLEANUP
 
@@ -1082,7 +1092,12 @@ exit 1
 ]])
 chmod a+x ./no-m4
 
-AT_CHECK([PATH=`pwd`:$PATH M4=`pwd`/no-m4 $LIBTOOLIZE --ltdl=ltdl], 0, expout)
+case $LN_S in
+*mklink*)
+  AT_CHECK([PATH=`pwd`:$PATH M4=`pwd`/no-m4 $LIBTOOLIZE --ltdl=ltdl], 0, stdout) ;;
+*)
+  AT_CHECK([PATH=`pwd`:$PATH M4=`pwd`/no-m4 $LIBTOOLIZE --ltdl=ltdl], 0, expout) ;;
+esac
 
 AT_CLEANUP
 


From MAILER-DAEMON Mon May 26 10:28:15 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoH-0007s1-EO
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:14 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Ti-1q
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnM-0007zP-FO
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 68B24C04DAD; Mon, 26 May 2025 10:27:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org, Mitch <mitch.capper+gnu33@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: f49da6ca2a77234719f34597ea583f29c0cf10d4
Auto-Submitted: auto-generated
Message-Id: <20250526142716.68B24C04DAD@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:26 -0000

branch: development
commit f49da6ca2a77234719f34597ea583f29c0cf10d4
Author: Mitch <mitch.capper+gnu33@gmail.com>
AuthorDate: Mon Dec 2 22:47:48 2024 +0200

    libtool: Fix MSVC cl.exe .exp extension collision
    
    MSVC's compiler uses the .exp entension for their own export format,
    which causes a build failure when a subsequent build is run. The
    MSVC compiler, cl.exe, errors for an invalid file format. This is fixed
    by using a similar extension name to avoid the naming collision.
    
    Reported: https://savannah.gnu.org/support/?111157
    
    * build-aux/ltmain.in: Replace .exp extension with .expsym.
    * m4/libtool.m4: Replace .exp extension with .expsym.
---
 build-aux/ltmain.in | 10 ++++----
 m4/libtool.m4       | 68 ++++++++++++++++++++++++++---------------------------
 2 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index af014430..425de05a 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -2925,7 +2925,7 @@ extern \"C\" {
 
 	  # Prepare the list of exported symbols
 	  if test -z "$export_symbols"; then
-	    export_symbols=$output_objdir/$outputname.exp
+	    export_symbols=$output_objdir/$outputname.expsym
 	    $opt_dry_run || {
 	      $RM $export_symbols
 	      eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
@@ -2938,8 +2938,8 @@ extern \"C\" {
 	    }
 	  else
 	    $opt_dry_run || {
-	      eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
-	      eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+	      eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.expsym"'
+	      eval '$GREP -f "$output_objdir/$outputname.expsym" < "$nlist" > "$nlist"T'
 	      eval '$MV "$nlist"T "$nlist"'
 	      case $host in
 	        *cygwin* | *mingw* | *windows* | *cegcc* )
@@ -7915,7 +7915,7 @@ func_mode_link ()
 	if test -z "$export_symbols"; then
 	  if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
 	    func_verbose "generating symbol list for '$libname.la'"
-	    export_symbols=$output_objdir/$libname.exp
+	    export_symbols=$output_objdir/$libname.expsym
 	    $opt_dry_run || $RM $export_symbols
 	    cmds=$export_symbols_cmds
 	    save_ifs=$IFS; IFS='~'
@@ -8181,7 +8181,7 @@ func_mode_link ()
 
 	    ${skipped_export-false} && {
 	      func_verbose "generating symbol list for '$libname.la'"
-	      export_symbols=$output_objdir/$libname.exp
+	      export_symbols=$output_objdir/$libname.expsym
 	      $opt_dry_run || $RM $export_symbols
 	      libobjs=$output
 	      # Append the command to create the export file.
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 336dc88a..f009a5db 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1680,9 +1680,9 @@ AC_CACHE_CHECK([$1], [$2],
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym
      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+     if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then
        $2=yes
      fi
    fi
@@ -1720,9 +1720,9 @@ AC_CACHE_CHECK([$1], [$2],
      if test -s conftest.err; then
        # Append any errors to the config.log.
        cat conftest.err 1>&AS_MESSAGE_LOG_FD
-       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym
        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-       if diff conftest.exp conftest.er2 >/dev/null; then
+       if diff conftest.expsym conftest.er2 >/dev/null; then
          $2=yes
        fi
      else
@@ -2163,9 +2163,9 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.expsym
      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
-     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+     if test ! -s out/conftest.er2 || diff out/conftest.expsym out/conftest.er2 >/dev/null; then
        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
      fi
    fi
@@ -4470,7 +4470,7 @@ m4_if([$1], [CXX], [
 	  # AIX 5 now supports IA64 processor
 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 	else
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.expsym'
 	fi
 	;;
       chorus*)
@@ -4819,7 +4819,7 @@ m4_if([$1], [CXX], [
 	# AIX 5 now supports IA64 processor
 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       else
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.expsym'
       fi
       ;;
 
@@ -5783,14 +5783,14 @@ _LT_EOF
 	_LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
             cp "$export_symbols" "$output_objdir/$soname.def";
-            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.expsym";
           else
-            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.expsym;
           fi~
           if test -z "$linker_flags"; then
-             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
           else
-             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+             $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
           fi~
           linknames='
 	# The linker will not automatically build a static lib if we build a DLL.
@@ -6102,8 +6102,8 @@ _LT_EOF
       else
 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
-          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
+	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.expsym; done; printf "%s\\n" "-hidden">> $lib.expsym~
+          $CC -shared$allow_undefined_flag $wl-input $wl$lib.expsym $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.expsym'
 
 	# Both c and cxx compiler support -rpath directly
 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -6120,21 +6120,21 @@ _LT_EOF
       if test yes = "$GCC"; then
 	wlarc='$wl'
 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.expsym $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym'
       else
 	case `$CC -V 2>&1` in
 	*"Compilers 5.0"*)
 	  wlarc=''
 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+            $LD -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.expsym'
 	  ;;
 	*)
 	  wlarc='$wl'
 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+            $CC -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym'
 	  ;;
 	esac
       fi
@@ -6869,14 +6869,14 @@ if test yes != "$_lt_caught_CXX_error"; then
 	  _LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
               cp "$export_symbols" "$output_objdir/$soname.def";
-              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.expsym";
             else
-              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.expsym;
             fi~
             if test -z "$linker_flags"; then
-               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
             else
-               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
+               $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
             fi~
             linknames='
 	  # The linker will not automatically build a static lib if we build a DLL.
@@ -7395,10 +7395,10 @@ if test yes != "$_lt_caught_CXX_error"; then
 	      *)
 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
-                  echo "-hidden">> $lib.exp~
-                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
-                  $RM $lib.exp'
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.expsym; done~
+                  echo "-hidden">> $lib.expsym~
+                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.expsym  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
+                  $RM $lib.expsym'
 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 		;;
 	    esac
@@ -7477,8 +7477,8 @@ if test yes != "$_lt_caught_CXX_error"; then
             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+              $CC -G$allow_undefined_flag $wl-M $wl$lib.expsym -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.expsym'
 
 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -7514,8 +7514,8 @@ if test yes != "$_lt_caught_CXX_error"; then
 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $stdlibflag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-                  $CC -shared $pic_flag $stdlibflag $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+                  $CC -shared $pic_flag $stdlibflag $wl-M $wl$lib.expsym $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.expsym'
 
 	        # Commands to make compiler produce verbose output that lists
 	        # what "hidden" libraries, object files and flags are used when
@@ -7525,8 +7525,8 @@ if test yes != "$_lt_caught_CXX_error"; then
 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
 	        # platform.
 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G $stdlibflag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-                  $CC -G $stdlibflag $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
+                  $CC -G $stdlibflag $wl-M $wl$lib.expsym $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.expsym'
 
 	        # Commands to make compiler produce verbose output that lists
 	        # what "hidden" libraries, object files and flags are used when


From MAILER-DAEMON Mon May 26 10:28:18 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uJYoL-0008Ba-VA
	for mharc-libtool-commit@gnu.org; Mon, 26 May 2025 10:28:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ileanadumitrescu95@gmail.com>)
 id 1uJYnO-0005Tf-1a
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:19 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1uJYnM-0007zs-UC
 for libtool-commit@gnu.org; Mon, 26 May 2025 10:27:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id D4969C04DAF; Mon, 26 May 2025 10:27:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
References: <174826962889.389.2920520268807817091@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 605bbd1a3b8313f0fe7dd42a5ce19f01f7a42c48
Auto-Submitted: auto-generated
Message-Id: <20250526142716.D4969C04DAF@vcs2.savannah.gnu.org>
Date: Mon, 26 May 2025 10:27:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 May 2025 14:27:25 -0000

branch: development
commit 605bbd1a3b8313f0fe7dd42a5ce19f01f7a42c48
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed May 7 17:39:36 2025 +0300

    tests: Skip failing tests on MSVC
    
    Test 'deplibs without file command' fails on MSVC with a 'hard failure'.
    Since this test was created for MinGW, skipping for now.
    
    Test 'Libtool stress test.' fails on MSVC when the cl compiler cannot
    open an expsym file, which appears to exist but is empty.
    
    * tests/deplibs-mingw.at: Add check for MSVC build to skip test.
    * tests/stresstest.at: Add check for MSVC build to skip test.
---
 tests/deplibs-mingw.at | 5 +++++
 tests/stresstest.at    | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at
index bfa7b25d..fd6d81e7 100644
--- a/tests/deplibs-mingw.at
+++ b/tests/deplibs-mingw.at
@@ -24,6 +24,11 @@
 AT_SETUP([deplibs without file command])
 AT_KEYWORDS([libtool])
 
+# Skip failing test on MSVC
+if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then
+  AT_CHECK([exit 77])
+fi
+
 cwd=`pwd`
 instdir=$cwd/inst
 libdir=$instdir/lib
diff --git a/tests/stresstest.at b/tests/stresstest.at
index 63f17d58..e99de503 100644
--- a/tests/stresstest.at
+++ b/tests/stresstest.at
@@ -28,6 +28,12 @@
 AT_BANNER([Libtool stress test.])
 AT_SETUP([Link option thorough search test])
 AT_KEYWORDS([libtool expensive])
+
+# Skip failing test on MSVC
+if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then
+  AT_CHECK([exit 77])
+fi
+
 eval `$LIBTOOL --config | $EGREP '^(CC|objdir|allow_undefined_flag)='`
 
 mkdir sub sub2 sub3 2>/dev/null


