From MAILER-DAEMON Tue Sep 02 09:44:20 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1utRJ5-0007mu-Js
	for mharc-libtool-commit@gnu.org; Tue, 02 Sep 2025 09:44:20 -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 1utRIz-0007lk-Ru
 for libtool-commit@gnu.org; Tue, 02 Sep 2025 09:44: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 1utRIz-0000qu-JF
 for libtool-commit@gnu.org; Tue, 02 Sep 2025 09:44:13 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 99670C008B7; Tue,  2 Sep 2025 09:44:11 -0400 (EDT)
Date: Tue, 02 Sep 2025 09:44:10 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: Add test file for libtool-next-version
 script
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175682065041.13786.14031980185429449821@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: 41e81b7b969a373f2909695d62e328ab17dc4d9d
X-Git-Newrev: 912a36eab1ba0ccd5db3e59a2738aa0b940e7b98
X-Git-Rev: 912a36eab1ba0ccd5db3e59a2738aa0b940e7b98
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, 02 Sep 2025 13:44:14 -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 912a36ea Add test file for libtool-next-version script
912a36ea is described below

commit 912a36eab1ba0ccd5db3e59a2738aa0b940e7b98
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Aug 28 20:58:52 2025 +0300

    Add test file for libtool-next-version script
    
    * Makefile.am: Add versioning_script.at to testsuite.
    * doc/libtool.texi: Update to describe new test file.
    * tests/versioning_script.at: Autotest file for testing the output of
      the libtool-next-version script.
---
 Makefile.am                |   1 +
 doc/libtool.texi           |   4 +
 tests/versioning_script.at | 303 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 308 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index e869211b..f25663d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -738,6 +738,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/bug_62343.at	\
 		  tests/bug_71489.at \
 		  tests/bug_42313.at \
+		  tests/versioning_script.at \
 		  $(NOTHING_ELSE)
 
 EXTRA_DIST     += $(testsuite) $(TESTSUITE_AT) $(package_m4)
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 2ec65c9f..07aa1e7e 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -5809,6 +5809,10 @@ Tests that @command{libtool} can handle C++ code utilizing templates.
 Main testsuite framework file processed by @command{autom4te} processes enable
 running the @command{libtool} test cases.
 
+@item @file{tests/versioning_script.at}
+Tests @command{libtool-next-version} for verifying the helper script determines
+the next version to use for a @command{libtool} library correctly.
+
 @item @file{tests/versioning.at}
 Tests @command{libtool}'s versioning system.  Tests begin with verifying the
 behaviour of @command{libtool} versioning flags @option{-version-info} and
diff --git a/tests/versioning_script.at b/tests/versioning_script.at
new file mode 100644
index 00000000..d0c1c907
--- /dev/null
+++ b/tests/versioning_script.at
@@ -0,0 +1,303 @@
+# versioning_script.at -- test the libtool versioning script: libtool-next-version         -*- Autotest -*-
+#
+#   Copyright (C) 2025 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool.  If not, see <https://www.gnu.org/licenses/>.
+####
+####
+
+AT_SETUP([Test libtool-next-version script])
+AT_KEYWORDS([libtool])
+# Testing the script. Let's create an old library and a new library.
+
+eval `$LIBTOOL --config | $EGREP '^(libname_spec|libext)='`
+
+mkdir -p libexample/src
+mkdir -p new_libexample/src
+
+mkdir libexample/m4
+mkdir new_libexample/m4
+
+touch libexample/src/Makefile.am new_libexample/src/Makefile.am
+
+AT_DATA([libexample/Makefile.am], [[
+# Makefile.am
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = src
+
+# Enable subdir-objects option
+AM_CFLAGS = -I$(srcdir)/src
+
+# Enable subdir-objects
+AUTOMAKE_OPTIONS = subdir-objects
+
+lib_LTLIBRARIES = libexample.la
+
+libexample_la_SOURCES = src/example.c src/example.h
+]])
+
+AT_DATA([new_libexample/Makefile.am], [[
+# Makefile.am
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = src
+
+# Enable subdir-objects option
+AM_CFLAGS = -I$(srcdir)/src
+
+# Enable subdir-objects
+AUTOMAKE_OPTIONS = subdir-objects
+
+lib_LTLIBRARIES = libexample.la
+
+libexample_la_SOURCES = src/example.c src/example.h
+]])
+
+AT_DATA([libexample/configure.ac], [[
+# configure.ac
+AC_INIT([libexample], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+# Add the macro directory
+AC_CONFIG_MACRO_DIRS([m4])
+
+# Initialize the archiver
+AM_PROG_AR
+
+AC_PROG_CC
+
+# Set Libtool versioning
+LT_INIT
+
+AC_CONFIG_SRCDIR([src/example.c])
+AC_CONFIG_HEADERS([config.h])
+
+AC_CONFIG_FILES([Makefile src/Makefile])
+AC_OUTPUT
+]])
+
+AT_DATA([new_libexample/configure.ac], [[
+# configure.ac
+AC_INIT([libexample], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+# Add the macro directory
+AC_CONFIG_MACRO_DIRS([m4])
+
+# Initialize the archiver
+AM_PROG_AR
+
+AC_PROG_CC
+
+# Set Libtool versioning
+LT_INIT
+AC_CONFIG_SRCDIR([src/example.c])
+AC_CONFIG_HEADERS([config.h])
+
+AC_CONFIG_FILES([Makefile src/Makefile])
+AC_OUTPUT
+]])
+
+AT_DATA([libexample/src/example.c], [[
+// src/example.c
+#include <stdio.h>
+
+void example_function() {
+    printf("Hello from example_function!\n");
+}
+]])
+
+AT_DATA([libexample/src/example.h], [[
+// src/example.h
+#ifndef EXAMPLE_H
+#define EXAMPLE_H
+
+void example_function();
+
+#endif // EXAMPLE_H
+]])
+
+
+AT_DATA([new_libexample/src/example.c], [[
+// src/example.c
+#include <stdio.h>
+
+void example_function() {
+    printf("Hello from example_function!\n");
+}
+
+void new_function() {
+	printf("new\n");
+}
+]])
+
+AT_DATA([new_libexample/src/example.h], [[
+// src/example.h
+//
+#ifndef EXAMPLE_H
+#define EXAMPLE_H
+
+void example_function();
+void new_function();
+#endif // EXAMPLE_H
+]])
+
+echo "Running autoreconf on libexample directory, the original library"
+(
+    cd libexample
+    LT_AT_LIBTOOLIZE([--copy --ltdl])
+    LT_AT_AUTORECONF([-ivf])
+    LT_AT_CONFIGURE([], [configure])
+    LT_AT_MAKE([])
+)
+
+echo "Running autoreconf on new_libexample directory, the updated library"
+(
+    cd new_libexample
+    LT_AT_LIBTOOLIZE([--copy --ltdl])
+    LT_AT_AUTORECONF([-ivf])
+    LT_AT_CONFIGURE([], [configure])
+    LT_AT_MAKE([])
+)
+
+remove_whitespace() {
+    input_string=$1
+    echo "$input_string" | tr -d '[[:space:]]'
+}
+
+# Check if the version script exists
+if test -f "$_lt_pkgdatadir/libtool-next-version"; then
+    script_path=$_lt_pkgdatadir/libtool-next-version
+elif test -f "$abs_builddir/../libtool-next-version"; then
+    script_path=$abs_builddir/../libtool-next-version
+elif test -f "../../../libtool-next-version"; then
+    script_path=../../../libtool-next-version
+else
+    echo "Couldn't find script"
+fi
+
+AT_CHECK([test -f "$script_path"])
+
+name=example
+eval libname=\"$libname_spec\"
+
+# Set version to 1.0.0. Select the default options for determining the new version of the library.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+# Verify --help works
+$script_path --help > actual
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+expected="Options: --help print this help and exit --version print version information and exit"
+expected=$(remove_whitespace "$expected")
+echo "expected is $expected"
+AT_CHECK([$GREP -i $expected actual],
+         [0], [ignore])
+
+# Verify --version works
+$script_path --version > actual
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected="libtool-next-version (GNU libtool)"
+expected=$(remove_whitespace "$expected")
+echo "expected is $expected"
+AT_CHECK([$GREP -i $expected actual],
+         [0], [ignore])
+
+# Try each possible answer to the version script.
+
+# Case 1: Indicate to the script that there has not been any code change.
+(echo "1"; echo "0"; echo "0"; echo no) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=1 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 2: There is a code change. An interface has been removed.
+(echo "1"; echo "0"; echo "0"; echo yes; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 3: There is a code change. No interfaces have been removed. An interface has changed.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext> actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+ # Case 4: There is a code change. No interfaces have been removed. No interfaces have changed. An interface has been added.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=1"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 5: There is a code change. No interfaces have been removed. No interfaces have changed. No interfaces have been added.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=1 LTV_REVISION=1 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+case $host_os in
+mingw* | windows* | cygwin* | solaris* | linux-musl*)
+    echo "Version script not testing code change differences on Solaris, Alpine Linux, and Windows platforms".
+  ;;
+*)
+    echo "Version script testing code change differences on $host_os"
+    # Test on differences from the old library to the new library
+    (echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+    tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+    # If the symbol list has changed and something has been added, roll the CURRENT and AGE version.
+    # That is, the new version is 2.0.1
+    expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=1"
+    expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+    AT_CHECK([$GREP -i $expected_version actual],
+            [0], [ignore])
+
+    # Verify the symbol list has changed and is a new_function
+    expected_1="The symbol list changed. Here are the differences:"
+    expected_2=new_function
+    expected_1=$(remove_whitespace "$expected_1")
+    expected_2=$(remove_whitespace "$expected_2")
+    echo "expected is $expected_1 && $expected_2"
+    AT_CHECK([$GREP -i $expected_1 actual && $GREP -i $expected_2 actual],
+            [0], [ignore])
+esac
+
+
+AT_CLEANUP


From MAILER-DAEMON Wed Sep 03 10:38:47 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1utodL-0005BA-0a
	for mharc-libtool-commit@gnu.org; Wed, 03 Sep 2025 10:38:47 -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 1utodJ-0005Ao-4R
 for libtool-commit@gnu.org; Wed, 03 Sep 2025 10:38:45 -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 1utodI-0003HX-Jf
 for libtool-commit@gnu.org; Wed, 03 Sep 2025 10:38:44 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id DD27CC008B7; Wed,  3 Sep 2025 10:38:43 -0400 (EDT)
Date: Wed, 03 Sep 2025 10:38:43 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: Makefile.am: Reorder testsuite
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175691032350.21971.14277647230901275512@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: 912a36eab1ba0ccd5db3e59a2738aa0b940e7b98
X-Git-Newrev: a317aec0728ee227e8e118672034b82449150b0d
X-Git-Rev: a317aec0728ee227e8e118672034b82449150b0d
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: Wed, 03 Sep 2025 14:38:46 -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 a317aec0 Makefile.am: Reorder testsuite
a317aec0 is described below

commit a317aec0728ee227e8e118672034b82449150b0d
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Tue Sep 2 20:10:44 2025 +0300

    Makefile.am: Reorder testsuite
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f25663d8..ccca7dcb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -698,6 +698,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/nocase.at \
 		  tests/install.at \
 		  tests/versioning.at \
+		  tests/versioning_script.at \
 		  tests/destdir.at \
 		  tests/old-m4-iface.at \
 		  tests/am-subdir.at \
@@ -733,12 +734,11 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/dumpbin-symbols.at \
 		  tests/deplibs-mingw.at \
 		  tests/sysroot.at \
-		  tests/stresstest.at \
-		  tests/cmdline_wrap.at \
 		  tests/bug_62343.at	\
 		  tests/bug_71489.at \
 		  tests/bug_42313.at \
-		  tests/versioning_script.at \
+		  tests/stresstest.at \
+		  tests/cmdline_wrap.at \
 		  $(NOTHING_ELSE)
 
 EXTRA_DIST     += $(testsuite) $(TESTSUITE_AT) $(package_m4)


From MAILER-DAEMON Wed Sep 03 13:57:48 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1utrjv-0005ew-QL
	for mharc-libtool-commit@gnu.org; Wed, 03 Sep 2025 13:57:47 -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 1utrjl-0005dF-7V
 for libtool-commit@gnu.org; Wed, 03 Sep 2025 13:57:37 -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 1utrjj-0003rQ-Ga
 for libtool-commit@gnu.org; Wed, 03 Sep 2025 13:57:36 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 94721C008B7; Wed,  3 Sep 2025 13:57:33 -0400 (EDT)
Date: Wed, 03 Sep 2025 13:57:33 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: ltmain.in: Pass through all warning
 flags to the linker.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175692225316.30958.4375148790125500567@vcs2.savannah.gnu.org>
Reply-To: Elizabeth Figura <zfigura@codeweavers.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: a317aec0728ee227e8e118672034b82449150b0d
X-Git-Newrev: 0e41ccbc184b319475838f311c1a70e769549fa0
X-Git-Rev: 0e41ccbc184b319475838f311c1a70e769549fa0
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: Wed, 03 Sep 2025 17:57:39 -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 0e41ccbc ltmain.in: Pass through all warning flags to the linker.
0e41ccbc is described below

commit 0e41ccbc184b319475838f311c1a70e769549fa0
Author: Elizabeth Figura <zfigura@codeweavers.com>
AuthorDate: Mon Aug 25 18:10:18 2025 -0500

    ltmain.in: Pass through all warning flags to the linker.
    
    When link-time optimization (LTO) is used, some warnings are reported
    while linking, and the flags must be passed to the linker to enable or
    disable them.
    
    -W* also catches -Wl,* and -Wa,*, but the former is already accounted
    for in an earlier switch case, and the latter is already passed through.
    
    * build-aux/ltmain.in: Pass through all warning flags to the linker.
---
 build-aux/ltmain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 294ed43c..0f2c81f8 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5664,7 +5664,7 @@ func_mode_link ()
       # --unwindlib=*        select unwinder library with clang
       # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
       # -Wa,*                Pass flags directly to the assembler
-      # -Werror, -Werror=*   Report (specified) warnings as errors
+      # -W*                  Warnings, needed for lto
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*| \
       -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
@@ -5672,7 +5672,7 @@ func_mode_link ()
       -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
       -fdiagnostics-color*|-frecord-gcc-switches| \
-      -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
+      -fuse-ld=*|-static-*|-fcilkplus|-W*)
         func_quote_arg pretty "$arg"
 	arg=$func_quote_arg_result
         func_append compile_command " $arg"


From MAILER-DAEMON Sat Sep 06 07:44:47 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurLa-0007nk-Ot
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:44:46 -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 1uurLZ-0007nA-Ig
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:44:45 -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 1uurLX-0003nr-BE
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:44:45 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id EE18EC008BB; Sat,  6 Sep 2025 07:44:39 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: master updated (6389dce8 -> 69736cd8)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 6389dce814b2f233844510a12eb59b2733933a66
X-Git-Newrev: 69736cd828b76da6ad8257e96dd44bc0659b487d
Auto-Submitted: auto-generated
Date: Sat,  6 Sep 2025 07:44:27 -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: Sat, 06 Sep 2025 11:44:45 -0000

ildumi pushed a change to branch master.

    from 6389dce8 gnulib: Update submodule
     new 4d00c362 New Intel OneAPI compiler names
     new 2a4cc31b Add support for ML64
     new 92d62dcb Add test file for libtool-next-version script
     new 19c0fcc0 Makefile.am: Reorder testsuite
     new 69736cd8 ltmain.in: Pass through all warning flags to the linker.


Summary of changes:
 Makefile.am                   |   6 +-
 NEWS                          |   6 +
 build-aux/ltmain.in           |   4 +-
 configure.ac                  |   1 +
 doc/libtool.texi              |  10 +-
 libltdl/libltdl/lt__alloc.h   |   8 +-
 libltdl/libltdl/lt_system.h   |  12 +-
 libltdl/loaders/loadlibrary.c |   4 +-
 libltdl/ltdl.c                |  34 +++--
 m4/libtool.m4                 | 151 +++++++++++++++++++--
 tests/flags.at                |  20 ++-
 tests/infer-tag.at            |  19 +++
 tests/versioning_script.at    | 303 ++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 531 insertions(+), 47 deletions(-)
 create mode 100644 tests/versioning_script.at


From MAILER-DAEMON Sat Sep 06 07:45:10 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurLy-0007vP-61
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:10 -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 1uurLp-0007r4-NJ
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:03 -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 1uurLn-0003qB-QA
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:01 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id AF5AEC00904; Sat,  6 Sep 2025 07:44:48 -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: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
References: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 4d00c3624d0a2f11442761a154a983031f9cb1c2
Auto-Submitted: auto-generated
Message-Id: <20250906114458.AF5AEC00904@vcs2.savannah.gnu.org>
Date: Sat,  6 Sep 2025 07:44:47 -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: Sat, 06 Sep 2025 11:45:08 -0000

branch: master
commit 4d00c3624d0a2f11442761a154a983031f9cb1c2
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Sat Aug 9 14:22:47 2025 +0300

    New Intel OneAPI compiler names
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78817
    
    * libltdl/libltdl/lt__alloc.h: Change FREE and MEMREASSIGN macros for
      -Wcompound-token-split-by-macro.
    * libltdl/libltdl/lt_system.h: Change LT_STMT_START and LT_STMT_END
      macros for -Wcompound-token-split-by-macro.
    * libltdl/loaders/loadlibrary.c: Add support for icx, icpx, ifx.
    * libltdl/ltdl.c: Fixes for Clang.
    * m4/libtool.m4: Add support for icx, icpx, and ifx.
    * NEWS: Update.
---
 NEWS                          |  4 ++++
 libltdl/libltdl/lt__alloc.h   |  8 ++++----
 libltdl/libltdl/lt_system.h   | 12 ++++++------
 libltdl/loaders/loadlibrary.c |  4 ++--
 libltdl/ltdl.c                | 34 ++++++++++++++++++++--------------
 m4/libtool.m4                 | 23 ++++++++++++-----------
 6 files changed, 48 insertions(+), 37 deletions(-)

diff --git a/NEWS b/NEWS
index e7169270..b167fd74 100644
--- a/NEWS
+++ b/NEWS
@@ -55,6 +55,10 @@ NEWS - list of user-visible changes between releases of GNU Libtool
 
   - Fix libltdl early failures for multi-arch.
 
+** Changes in supported systems or compilers:
+
+  - Support additional Intel OneAPI compilers, 'icx', 'icpx', and 'ifx'.
+
 
 * Noteworthy changes in release 2.5.4 (2024-11-20) [stable]
 
diff --git a/libltdl/libltdl/lt__alloc.h b/libltdl/libltdl/lt__alloc.h
index f27345b1..ad25e30e 100644
--- a/libltdl/libltdl/lt__alloc.h
+++ b/libltdl/libltdl/lt__alloc.h
@@ -35,11 +35,11 @@ LT_BEGIN_C_DECLS
 
 #define MALLOC(tp, n)		(tp*) lt__malloc((n) * sizeof(tp))
 #define REALLOC(tp, mem, n)	(tp*) lt__realloc((mem), (n) * sizeof(tp))
-#define FREE(mem)				LT_STMT_START {	\
-	free (mem); mem = NULL;					} LT_STMT_END
-#define MEMREASSIGN(p, q)			LT_STMT_START {	\
+#define FREE(mem)				LT_STMT_START \
+	free (mem); mem = NULL;					LT_STMT_END
+#define MEMREASSIGN(p, q)			LT_STMT_START \
 	if ((p) != (q)) { free (p); (p) = (q); (q) = 0; }	\
-								} LT_STMT_END
+								LT_STMT_END
 
 /* If set, this function is called when memory allocation has failed.  */
 LT_SCOPE void (*lt__alloc_die) (void);
diff --git a/libltdl/libltdl/lt_system.h b/libltdl/libltdl/lt_system.h
index 15346858..2f2c7b77 100644
--- a/libltdl/libltdl/lt_system.h
+++ b/libltdl/libltdl/lt_system.h
@@ -62,15 +62,15 @@ License along with GNU Libltdl.  If not, see <https://www.gnu.org/licenses/>.
 /* LT_STMT_START/END are used to create macros that expand to a
    a single compound statement in a portable way.  */
 #if defined  __GNUC__ && !defined  __STRICT_ANSI__ && !defined  __cplusplus
-#  define LT_STMT_START        (void)(
-#  define LT_STMT_END          )
+#  define LT_STMT_START        (void)({
+#  define LT_STMT_END          })
 #else
 #  if (defined sun || defined __sun__)
-#    define LT_STMT_START      if (1)
-#    define LT_STMT_END        else (void)0
+#    define LT_STMT_START      if (1){
+#    define LT_STMT_END        }else (void)0
 #  else
-#    define LT_STMT_START      do
-#    define LT_STMT_END        while (0)
+#    define LT_STMT_START      do{
+#    define LT_STMT_END        }while (0)
 #  endif
 #endif
 
diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c
index e1176bd7..d62dce5b 100644
--- a/libltdl/loaders/loadlibrary.c
+++ b/libltdl/loaders/loadlibrary.c
@@ -95,8 +95,8 @@ get_vtable (lt_user_data loader_data)
 
 #include <windows.h>
 
-#define LOCALFREE(mem)					     LT_STMT_START { \
-	if (mem) { LocalFree ((void *)mem); mem = NULL; }    } LT_STMT_END
+#define LOCALFREE(mem)					     LT_STMT_START \
+	if (mem) { LocalFree ((void *)mem); mem = NULL; }    LT_STMT_END
 #define LOADLIB__SETERROR(errmsg) LT__SETERRORSTR (loadlibraryerror (errmsg))
 #define LOADLIB_SETERROR(errcode) LOADLIB__SETERROR (LT__STRERROR (errcode))
 
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index 60495415..85bd6013 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -1367,9 +1367,12 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
 	    }
 #endif
 #if defined LT_DLSEARCH_PATH
-	  if (!file && *sys_dlsearch_path)
+	  if (!file)
 	    {
-	      file = find_file (sys_dlsearch_path, base_name, &dir);
+	      if (*sys_dlsearch_path)
+	        {
+	          file = find_file (sys_dlsearch_path, base_name, &dir);
+	        }
 	    }
 #endif
 	}
@@ -1916,24 +1919,27 @@ lt_dlforeachfile (const char *search_path,
       is_done = foreach_dirinpath (user_search_path, 0,
 				   foreachfile_callback, fpptr, data);
       if (!is_done)
-	{
-	  is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
+	      {
+	        is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
 				       foreachfile_callback, fpptr, data);
-	}
+	      }
 
 #if defined LT_MODULE_PATH_VAR
       if (!is_done)
-	{
-	  is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
-				       foreachfile_callback, fpptr, data);
-	}
+      {
+          is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
+               foreachfile_callback, fpptr, data);
+      }
 #endif
 #if defined LT_DLSEARCH_PATH
-      if (!is_done && *sys_dlsearch_path)
-	{
-	  is_done = foreach_dirinpath (sys_dlsearch_path, 0,
-				       foreachfile_callback, fpptr, data);
-	}
+      if (!is_done)
+	      {
+          if (*sys_dlsearch_path)
+            {
+              is_done = foreach_dirinpath (sys_dlsearch_path, 0,
+                   foreachfile_callback, fpptr, data);
+            }
+        }
 #endif
     }
 
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index ffc8a3e1..cb869809 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2668,8 +2668,8 @@ m4_if([$1], [],[
     dynamic_linker='Win32 ld.exe'
     ;;
 
-  *,cl* | *,icl*)
-    # Native MSVC or ICC
+  *,cl* | *,icl* | *,icx*)
+    # Native MSVC and Intel compilers
     libname_spec='$name'
     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
     library_names_spec='$libname.dll.lib'
@@ -4558,7 +4558,7 @@ m4_if([$1], [CXX], [
 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 	    ;;
-	  icpc* )
+	  icpc* | icpx*)
 	    # Intel C++, used to be incompatible with GCC.
 	    # ICC 10 doesn't accept -KPIC any more.
 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4893,7 +4893,7 @@ m4_if([$1], [CXX], [
         ;;
       # icc used to be incompatible with GCC.
       # ICC 10 doesn't accept -KPIC any more.
-      icc* | ifort*)
+      icc* | ifort* | icx* | ifx*)
 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
@@ -5129,7 +5129,8 @@ m4_if([$1], [CXX], [
     ;;
   cygwin* | mingw* | windows* | cegcc*)
     case $cc_basename in
-    cl* | icl*)
+    cl* | icl* | icx* | icpx*)
+      # Native MSVC and Intel compilers
       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
       ;;
     *)
@@ -5404,7 +5405,7 @@ _LT_EOF
 	  tmp_addflag=' -i_dynamic' ;;
 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
-	ifc* | ifort*)			# Intel Fortran compiler
+	ifc* | ifort* | ifx*)		# Intel Fortran compiler
 	  tmp_addflag=' -nofor_main' ;;
 	lf95*)				# Lahey Fortran 8.1
 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
@@ -5767,8 +5768,8 @@ _LT_EOF
       # hardcode_libdir_flag_spec is actually meaningless, as there is
       # no search path for DLLs.
       case $cc_basename in
-      cl* | icl*)
-	# Native MSVC or ICC
+      cl* | icl* | icx* | icpx*)
+	# Native MSVC and Intel compilers
 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 	_LT_TAGVAR(always_export_symbols, $1)=yes
@@ -6851,8 +6852,8 @@ if test yes != "$_lt_caught_CXX_error"; then
 
       cygwin* | mingw* | windows* | pw32* | cegcc*)
 	case $GXX,$cc_basename in
-	,cl* | no,cl* | ,icl* | no,icl*)
-	  # Native MSVC or ICC
+	,cl* | no,cl* | ,icl* | no,icl* | ,icx* | no,icx* | ,icpx* | no,icpx*)
+	  # Native MSVC and Intel compilers
 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
 	  # no search path for DLLs.
 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
@@ -7186,7 +7187,7 @@ if test yes != "$_lt_caught_CXX_error"; then
 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 	    ;;
-	  icpc* | ecpc* )
+	  icpc* | ecpc* | icpx*)
 	    # Intel C++
 	    with_gnu_ld=yes
 	    # version 8.0 and above of icpc choke on multiply defined symbols


From MAILER-DAEMON Sat Sep 06 07:45:10 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurLy-0007vZ-BW
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:10 -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 1uurLq-0007rV-Mt
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:03 -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 1uurLo-0003qG-Aw
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:01 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 108BAC008D1; Sat,  6 Sep 2025 07:44:55 -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, Elizabeth Figura <zfigura@codeweavers.com>
In-Reply-To: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
References: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 69736cd828b76da6ad8257e96dd44bc0659b487d
Auto-Submitted: auto-generated
Message-Id: <20250906114459.108BAC008D1@vcs2.savannah.gnu.org>
Date: Sat,  6 Sep 2025 07:44:55 -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: Sat, 06 Sep 2025 11:45:08 -0000

branch: master
commit 69736cd828b76da6ad8257e96dd44bc0659b487d
Author: Elizabeth Figura <zfigura@codeweavers.com>
AuthorDate: Mon Aug 25 18:10:18 2025 -0500

    ltmain.in: Pass through all warning flags to the linker.
    
    When link-time optimization (LTO) is used, some warnings are reported
    while linking, and the flags must be passed to the linker to enable or
    disable them.
    
    -W* also catches -Wl,* and -Wa,*, but the former is already accounted
    for in an earlier switch case, and the latter is already passed through.
    
    * build-aux/ltmain.in: Pass through all warning flags to the linker.
---
 build-aux/ltmain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 294ed43c..0f2c81f8 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5664,7 +5664,7 @@ func_mode_link ()
       # --unwindlib=*        select unwinder library with clang
       # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
       # -Wa,*                Pass flags directly to the assembler
-      # -Werror, -Werror=*   Report (specified) warnings as errors
+      # -W*                  Warnings, needed for lto
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*| \
       -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
@@ -5672,7 +5672,7 @@ func_mode_link ()
       -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
       -fdiagnostics-color*|-frecord-gcc-switches| \
-      -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
+      -fuse-ld=*|-static-*|-fcilkplus|-W*)
         func_quote_arg pretty "$arg"
 	arg=$func_quote_arg_result
         func_append compile_command " $arg"


From MAILER-DAEMON Sat Sep 06 07:45:10 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurLy-0007vs-PX
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:10 -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 1uurLp-0007r6-No
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:03 -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 1uurLn-0003qF-Bw
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:01 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 0B937C008BD; Sat,  6 Sep 2025 07:44:55 -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: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
References: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 19c0fcc0d11ef47d911c81c6040df6ef5fe9b8c4
Auto-Submitted: auto-generated
Message-Id: <20250906114459.0B937C008BD@vcs2.savannah.gnu.org>
Date: Sat,  6 Sep 2025 07:44:54 -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: Sat, 06 Sep 2025 11:45:08 -0000

branch: master
commit 19c0fcc0d11ef47d911c81c6040df6ef5fe9b8c4
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Tue Sep 2 20:10:44 2025 +0300

    Makefile.am: Reorder testsuite
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f25663d8..ccca7dcb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -698,6 +698,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/nocase.at \
 		  tests/install.at \
 		  tests/versioning.at \
+		  tests/versioning_script.at \
 		  tests/destdir.at \
 		  tests/old-m4-iface.at \
 		  tests/am-subdir.at \
@@ -733,12 +734,11 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/dumpbin-symbols.at \
 		  tests/deplibs-mingw.at \
 		  tests/sysroot.at \
-		  tests/stresstest.at \
-		  tests/cmdline_wrap.at \
 		  tests/bug_62343.at	\
 		  tests/bug_71489.at \
 		  tests/bug_42313.at \
-		  tests/versioning_script.at \
+		  tests/stresstest.at \
+		  tests/cmdline_wrap.at \
 		  $(NOTHING_ELSE)
 
 EXTRA_DIST     += $(testsuite) $(TESTSUITE_AT) $(package_m4)


From MAILER-DAEMON Sat Sep 06 07:45:12 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurM0-0007wW-5b
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45: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 1uurLq-0007rU-M3
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:03 -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 1uurLn-0003qD-GV
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:01 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 06E29C008BB; Sat,  6 Sep 2025 07:44:53 -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: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
References: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 92d62dcb09eaceaef038abac3173c31daf95e47d
Auto-Submitted: auto-generated
Message-Id: <20250906114459.06E29C008BB@vcs2.savannah.gnu.org>
Date: Sat,  6 Sep 2025 07:44:53 -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: Sat, 06 Sep 2025 11:45:08 -0000

branch: master
commit 92d62dcb09eaceaef038abac3173c31daf95e47d
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Aug 28 20:58:52 2025 +0300

    Add test file for libtool-next-version script
    
    * Makefile.am: Add versioning_script.at to testsuite.
    * doc/libtool.texi: Update to describe new test file.
    * tests/versioning_script.at: Autotest file for testing the output of
      the libtool-next-version script.
---
 Makefile.am                |   1 +
 doc/libtool.texi           |   4 +
 tests/versioning_script.at | 303 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 308 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index e869211b..f25663d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -738,6 +738,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/bug_62343.at	\
 		  tests/bug_71489.at \
 		  tests/bug_42313.at \
+		  tests/versioning_script.at \
 		  $(NOTHING_ELSE)
 
 EXTRA_DIST     += $(testsuite) $(TESTSUITE_AT) $(package_m4)
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 2ec65c9f..07aa1e7e 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -5809,6 +5809,10 @@ Tests that @command{libtool} can handle C++ code utilizing templates.
 Main testsuite framework file processed by @command{autom4te} processes enable
 running the @command{libtool} test cases.
 
+@item @file{tests/versioning_script.at}
+Tests @command{libtool-next-version} for verifying the helper script determines
+the next version to use for a @command{libtool} library correctly.
+
 @item @file{tests/versioning.at}
 Tests @command{libtool}'s versioning system.  Tests begin with verifying the
 behaviour of @command{libtool} versioning flags @option{-version-info} and
diff --git a/tests/versioning_script.at b/tests/versioning_script.at
new file mode 100644
index 00000000..d0c1c907
--- /dev/null
+++ b/tests/versioning_script.at
@@ -0,0 +1,303 @@
+# versioning_script.at -- test the libtool versioning script: libtool-next-version         -*- Autotest -*-
+#
+#   Copyright (C) 2025 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool.  If not, see <https://www.gnu.org/licenses/>.
+####
+####
+
+AT_SETUP([Test libtool-next-version script])
+AT_KEYWORDS([libtool])
+# Testing the script. Let's create an old library and a new library.
+
+eval `$LIBTOOL --config | $EGREP '^(libname_spec|libext)='`
+
+mkdir -p libexample/src
+mkdir -p new_libexample/src
+
+mkdir libexample/m4
+mkdir new_libexample/m4
+
+touch libexample/src/Makefile.am new_libexample/src/Makefile.am
+
+AT_DATA([libexample/Makefile.am], [[
+# Makefile.am
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = src
+
+# Enable subdir-objects option
+AM_CFLAGS = -I$(srcdir)/src
+
+# Enable subdir-objects
+AUTOMAKE_OPTIONS = subdir-objects
+
+lib_LTLIBRARIES = libexample.la
+
+libexample_la_SOURCES = src/example.c src/example.h
+]])
+
+AT_DATA([new_libexample/Makefile.am], [[
+# Makefile.am
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = src
+
+# Enable subdir-objects option
+AM_CFLAGS = -I$(srcdir)/src
+
+# Enable subdir-objects
+AUTOMAKE_OPTIONS = subdir-objects
+
+lib_LTLIBRARIES = libexample.la
+
+libexample_la_SOURCES = src/example.c src/example.h
+]])
+
+AT_DATA([libexample/configure.ac], [[
+# configure.ac
+AC_INIT([libexample], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+# Add the macro directory
+AC_CONFIG_MACRO_DIRS([m4])
+
+# Initialize the archiver
+AM_PROG_AR
+
+AC_PROG_CC
+
+# Set Libtool versioning
+LT_INIT
+
+AC_CONFIG_SRCDIR([src/example.c])
+AC_CONFIG_HEADERS([config.h])
+
+AC_CONFIG_FILES([Makefile src/Makefile])
+AC_OUTPUT
+]])
+
+AT_DATA([new_libexample/configure.ac], [[
+# configure.ac
+AC_INIT([libexample], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+# Add the macro directory
+AC_CONFIG_MACRO_DIRS([m4])
+
+# Initialize the archiver
+AM_PROG_AR
+
+AC_PROG_CC
+
+# Set Libtool versioning
+LT_INIT
+AC_CONFIG_SRCDIR([src/example.c])
+AC_CONFIG_HEADERS([config.h])
+
+AC_CONFIG_FILES([Makefile src/Makefile])
+AC_OUTPUT
+]])
+
+AT_DATA([libexample/src/example.c], [[
+// src/example.c
+#include <stdio.h>
+
+void example_function() {
+    printf("Hello from example_function!\n");
+}
+]])
+
+AT_DATA([libexample/src/example.h], [[
+// src/example.h
+#ifndef EXAMPLE_H
+#define EXAMPLE_H
+
+void example_function();
+
+#endif // EXAMPLE_H
+]])
+
+
+AT_DATA([new_libexample/src/example.c], [[
+// src/example.c
+#include <stdio.h>
+
+void example_function() {
+    printf("Hello from example_function!\n");
+}
+
+void new_function() {
+	printf("new\n");
+}
+]])
+
+AT_DATA([new_libexample/src/example.h], [[
+// src/example.h
+//
+#ifndef EXAMPLE_H
+#define EXAMPLE_H
+
+void example_function();
+void new_function();
+#endif // EXAMPLE_H
+]])
+
+echo "Running autoreconf on libexample directory, the original library"
+(
+    cd libexample
+    LT_AT_LIBTOOLIZE([--copy --ltdl])
+    LT_AT_AUTORECONF([-ivf])
+    LT_AT_CONFIGURE([], [configure])
+    LT_AT_MAKE([])
+)
+
+echo "Running autoreconf on new_libexample directory, the updated library"
+(
+    cd new_libexample
+    LT_AT_LIBTOOLIZE([--copy --ltdl])
+    LT_AT_AUTORECONF([-ivf])
+    LT_AT_CONFIGURE([], [configure])
+    LT_AT_MAKE([])
+)
+
+remove_whitespace() {
+    input_string=$1
+    echo "$input_string" | tr -d '[[:space:]]'
+}
+
+# Check if the version script exists
+if test -f "$_lt_pkgdatadir/libtool-next-version"; then
+    script_path=$_lt_pkgdatadir/libtool-next-version
+elif test -f "$abs_builddir/../libtool-next-version"; then
+    script_path=$abs_builddir/../libtool-next-version
+elif test -f "../../../libtool-next-version"; then
+    script_path=../../../libtool-next-version
+else
+    echo "Couldn't find script"
+fi
+
+AT_CHECK([test -f "$script_path"])
+
+name=example
+eval libname=\"$libname_spec\"
+
+# Set version to 1.0.0. Select the default options for determining the new version of the library.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+# Verify --help works
+$script_path --help > actual
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+expected="Options: --help print this help and exit --version print version information and exit"
+expected=$(remove_whitespace "$expected")
+echo "expected is $expected"
+AT_CHECK([$GREP -i $expected actual],
+         [0], [ignore])
+
+# Verify --version works
+$script_path --version > actual
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected="libtool-next-version (GNU libtool)"
+expected=$(remove_whitespace "$expected")
+echo "expected is $expected"
+AT_CHECK([$GREP -i $expected actual],
+         [0], [ignore])
+
+# Try each possible answer to the version script.
+
+# Case 1: Indicate to the script that there has not been any code change.
+(echo "1"; echo "0"; echo "0"; echo no) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=1 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 2: There is a code change. An interface has been removed.
+(echo "1"; echo "0"; echo "0"; echo yes; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 3: There is a code change. No interfaces have been removed. An interface has changed.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext> actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+ # Case 4: There is a code change. No interfaces have been removed. No interfaces have changed. An interface has been added.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=1"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+# Case 5: There is a code change. No interfaces have been removed. No interfaces have changed. No interfaces have been added.
+(echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+tr -d '[[:space:]]' < actual > temp && mv temp actual
+expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=1 LTV_REVISION=1 LTV_AGE=0"
+expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+AT_CHECK([$GREP -i $expected_version actual],
+         [0], [ignore])
+
+case $host_os in
+mingw* | windows* | cygwin* | solaris* | linux-musl*)
+    echo "Version script not testing code change differences on Solaris, Alpine Linux, and Windows platforms".
+  ;;
+*)
+    echo "Version script testing code change differences on $host_os"
+    # Test on differences from the old library to the new library
+    (echo "1"; echo "0"; echo "0"; echo yes; echo no; echo no; echo yes) \
+    | $script_path libexample/.libs/$libname.$libext new_libexample/.libs/$libname.$libext > actual
+
+    tr -d '[[:space:]]' < actual > temp && mv temp actual
+
+    # If the symbol list has changed and something has been added, roll the CURRENT and AGE version.
+    # That is, the new version is 2.0.1
+    expected_version="This is the libtool version of the library for the new release: LTV_CURRENT=2 LTV_REVISION=0 LTV_AGE=1"
+    expected_version=$(echo "$expected_version" | tr -d '[[:space:]]')
+    AT_CHECK([$GREP -i $expected_version actual],
+            [0], [ignore])
+
+    # Verify the symbol list has changed and is a new_function
+    expected_1="The symbol list changed. Here are the differences:"
+    expected_2=new_function
+    expected_1=$(remove_whitespace "$expected_1")
+    expected_2=$(remove_whitespace "$expected_2")
+    echo "expected is $expected_1 && $expected_2"
+    AT_CHECK([$GREP -i $expected_1 actual && $GREP -i $expected_2 actual],
+            [0], [ignore])
+esac
+
+
+AT_CLEANUP


From MAILER-DAEMON Sat Sep 06 07:45:14 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uurM2-0007ws-0y
	for mharc-libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45: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 1uurLp-0007r5-Nf
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:03 -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 1uurLn-0003qC-Ds
 for libtool-commit@gnu.org; Sat, 06 Sep 2025 07:45:01 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id B680FC008B7; Sat,  6 Sep 2025 07:44:52 -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: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
References: <175715905684.1789.3603235615040571284@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 2a4cc31b6635c411ae74a3d4ccdb48b1ff1dd4dc
Auto-Submitted: auto-generated
Message-Id: <20250906114458.B680FC008B7@vcs2.savannah.gnu.org>
Date: Sat,  6 Sep 2025 07:44:49 -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: Sat, 06 Sep 2025 11:45:08 -0000

branch: master
commit 2a4cc31b6635c411ae74a3d4ccdb48b1ff1dd4dc
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Aug 21 17:54:14 2025 +0300

    Add support for ML64
    
    The Microsoft Macro Assembler can be used to assemble and link one
    or more assembly-language source files with libtool.
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=48993
    
    * Makefile.am: Pass ML64 flags to tests.
    * configure.ac: Add language support for the Microsoft Macro Assembler.
    * doc/libtool.texi: Update documentation to include ML64.
    * m4/libtool.m4: Enable macro support for ML64.
    * tests/flags.at: Add test for ML64 flags.
    * tests/infer-tag.at: Add test for ML64 tag.
    * NEWS: Update.
---
 Makefile.am        |   1 +
 NEWS               |   2 +
 configure.ac       |   1 +
 doc/libtool.texi   |   6 +--
 m4/libtool.m4      | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 tests/flags.at     |  20 ++++++++-
 tests/infer-tag.at |  19 ++++++++
 7 files changed, 171 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c5728aef..e869211b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -755,6 +755,7 @@ TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" \
 	CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" CXXCPP="$(CXXCPP)" \
 	OBJC="$(OBJC)" OBJCFLAGS="$(OBJCFLAGS)" \
 	OBJCXX="$(OBJCXX)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \
+	ML64="$(ML64)" ML64FLAGS="$(ML64FLAGS)" \
 	F77="$(F77)" FFLAGS="$(FFLAGS)" \
 	FC="$(FC)" FCFLAGS="$(FCFLAGS)" \
 	GCJ="$(GCJ)" GCJFLAGS="$(GCJFLAGS)" \
diff --git a/NEWS b/NEWS
index b167fd74..09d201a2 100644
--- a/NEWS
+++ b/NEWS
@@ -59,6 +59,8 @@ NEWS - list of user-visible changes between releases of GNU Libtool
 
   - Support additional Intel OneAPI compilers, 'icx', 'icpx', and 'ifx'.
 
+  - Support ML64 (Microsoft Macro Assembler).
+
 
 * Noteworthy changes in release 2.5.4 (2024-11-20) [stable]
 
diff --git a/configure.ac b/configure.ac
index f9a485ba..8926cfe8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,7 @@ _LTDL_SETUP
 LT_LANG(C++)
 LT_LANG(Objective-C)
 LT_LANG(Objective-C++)
+LT_LANG(Microsoft Macro Assembler)
 LT_LANG(Fortran 77)
 LT_LANG(Fortran)
 LT_LANG(Go)
diff --git a/doc/libtool.texi b/doc/libtool.texi
index ba64245e..2ec65c9f 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -2403,7 +2403,7 @@ The user may still override this default by specifying
 @defmac LT_LANG (@var{language})
 Enable @command{libtool} support for the language given if it
 has not yet already been enabled.  Languages accepted are ``C++'',
-``Objective-C'', ``Objective-C++'', ``Fortran 77'', ``Java'', ``Go'',
+``Objective-C'', ``Objective-C++'', ``ML64``, ``Fortran 77'', ``Java'', ``Go'',
 and ``Windows Resource''.
 
 If Autoconf language support macros such as @code{AC_PROG_CXX} are
@@ -5629,7 +5629,7 @@ Automake.
 @item @file{tests/flags.at}
 Tests include checks that compile and linker flags get passed through
 @command{libtool}.  Tests flags for C, C++, Objective-C, Objective-C++,
-Fortran 77, Fortran 90, and Java.
+ML64, Fortran 77, Fortran 90, and Java.
 
 @item @file{tests/help.at}
 Tests a variety of mode commands, including mode short-hands, to ensure basic
@@ -5642,7 +5642,7 @@ on @file{libconv}, which depends on @file{libb}, which depends on @file{liba}.
 
 @item @file{tests/infer-tag.at}
 Tests that @code{func_infer_tag} works by compiling various code snippets in
-various languages (C, C++, Objective-C, Objective-C++, Fortran, Java) without
+various languages (C, C++, Objective-C, Objective-C++, ML64, Fortran, Java) without
 a @option{--tag} flag.
 
 @item @file{tests/inherited_flags.at}
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index cb869809..5ccb3a81 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -537,6 +537,26 @@ m4_defun([_LT_OBJECTIVE_C], [
     [Check for compiling Objective C and C++ code])
 ])
 
+m4_defun([_LT_ML64], [
+  AC_CACHE_CHECK([for ML64 compilation],
+    [lt_cv_ml64_compiles],
+    [ save_CFLAGS=$CFLAGS
+      CFLAGS=$ML64FLAGS
+      AC_COMPILE_IFELSE(
+        [AC_LANG_PROGRAM([ret
+],[])],
+        lt_cv_ml64_compiles=yes,
+        lt_cv_ml64_compiles=no
+      )
+      CFLAGS=$save_CFLAGS
+    ]
+  )
+  objc_compiles=$lt_cv_objc_compiles
+  _LT_DECL([], [ml64_compiles], [1],
+    [Check for compiling ml64 code])
+])
+
+
 # _LT_CONFIG_COMMANDS
 # -------------------
 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
@@ -858,6 +878,7 @@ m4_case([$1],
   [C++],		[_LT_LANG(CXX)],
   [Objective-C],		[_LT_LANG(OBJC)],
   [Objective-C++],	[_LT_LANG(OBJCXX)],
+  [Microsoft Macro Assembler],  [_LT_LANG(ML64)],
   [Go],			[_LT_LANG(GO)],
   [Java],		[_LT_LANG(GCJ)],
   [Fortran 77],		[_LT_LANG(F77)],
@@ -880,6 +901,26 @@ m4_defun([_LT_LANG],
 ])# _LT_LANG
 
 
+m4_ifndef([AC_PROG_ML64], [
+m4_defun([AC_PROG_ML64],
+[AC_LANG_PUSH(ML64)dnl
+AC_ARG_VAR([ML64],     [ml64 compiler command])dnl
+AC_ARG_VAR([ML64FLAGS], [ml64 compiler flags])dnl
+_AC_ARG_VAR_LDFLAGS()dnl
+AC_CHECK_TOOL(ML64, ml64)
+if test -z "$ML64"; then
+  if test -n "$ac_tool_prefix"; then
+    AC_CHECK_PROG(ML64, [${ac_tool_prefix}ml64], [${ac_tool_prefix}ml64])
+  fi
+fi
+if test -z "$ML64"; then
+  AC_CHECK_PROG(ML64, ml64, ml64, false)
+fi
+])#m4_defun
+])#m4_ifndef
+
+
+
 m4_ifndef([AC_PROG_GO], [
 ############################################################
 # NOTE: This macro has been submitted for inclusion into   #
@@ -930,11 +971,11 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
       [LT_LANG(GCJ)],
       [m4_ifdef([AC_PROG_GCJ],
 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+
        m4_ifdef([A][M_PROG_GCJ],
 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
        m4_ifdef([LT_PROG_GCJ],
 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
-
 AC_PROVIDE_IFELSE([AC_PROG_GO],
   [LT_LANG(GO)],
   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
@@ -947,10 +988,17 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
   [LT_LANG(OBJCXX)],
   [m4_define([AC_PROG_OBJCXX], defn([AC_PROG_OBJCXX])[LT_LANG(OBJCXX)])])
 
+AC_PROVIDE_IFELSE([AC_PROG_ML64],
+  [LT_LANG(ML64)],
+  [m4_define([AC_PROG_ML64], defn([AC_PROG_ML64])[LT_LANG(ML64)])])
 AC_PROVIDE_IFELSE([LT_PROG_RC],
   [LT_LANG(RC)],
   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
-])# _LT_LANG_DEFAULT_CONFIG
+
+
+])
+
+# _LT_LANG_DEFAULT_CONFIG
 
 # Obsolete macros:
 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
@@ -8236,6 +8284,76 @@ CFLAGS=$lt_save_CFLAGS
 ])# _LT_LANG_GCJ_CONFIG
 
 
+# _LT_LANG_ML64_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the ML64 assembler
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_ML64_CONFIG],
+[AC_REQUIRE([LT_PROG_ML64])dnl
+AC_LANG_SAVE
+
+# Source file extension for ML64 test sources.
+ac_ext=asm
+
+#Object file extension for compile ML64 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="main PROC ret main ENDP"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="main PROC ret main ENDP"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# TODO? Check for compilation issues with ML64 flags.
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${ML64-"gcc"}
+CFLAGS=$ML64FLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)=$LD
+_LT_CC_BASENAME([$compiler])
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+  _LT_COMPILER_NO_RTTI($1)
+  _LT_COMPILER_PIC($1)
+  _LT_COMPILER_C_O($1)
+  _LT_COMPILER_FILE_LOCKS($1)
+  _LT_LINKER_SHLIBS($1)
+  _LT_LINKER_HARDCODE_LIBPATH($1)
+
+  _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_ML64_CONFIG
+
+
 # _LT_LANG_GO_CONFIG([TAG])
 # --------------------------
 # Ensure that the configuration variables for the GNU Go compiler
@@ -8504,6 +8622,12 @@ CC=$lt_save_CC
 CFLAGS=$lt_save_CFLAGS
 ])# _LT_LANG_RC_CONFIG
 
+# LT_PROG_ML64
+# -----------
+AC_DEFUN([LT_PROG_ML64],
+[AC_CHECK_TOOL(ML64, ml64,)
+])
+
 
 # LT_PROG_OBJC
 # -----------
diff --git a/tests/flags.at b/tests/flags.at
index d88eea02..7aa435c7 100644
--- a/tests/flags.at
+++ b/tests/flags.at
@@ -18,7 +18,7 @@
 # along with GNU Libtool.  If not, see <https://www.gnu.org/licenses/>.
 ####
 
-m4_foreach([lt_tag], [CC, CXX, OBJC, OBJCXX, F77, FC, GCJ],
+m4_foreach([lt_tag], [CC, CXX, OBJC, OBJCXX, F77, FC, GCJ, ML64],
 [AT_SETUP([passing lt_tag flags through libtool])
 AT_KEYWORDS([libtool])
 LT_AT_TAG(m4_defn([lt_tag]))
@@ -99,8 +99,26 @@ compile="$FC $FCFLAGS" link="$FC $FCFLAGS $LDFLAGS" source=a.f90
 [[class a {}
 ]])
 compile="$GCJ $GCJFLAGS" link="$GCJ $GCJFLAGS $LDFLAGS" source=a.java
+],
+[ML64], [AT_DATA([a.asm],
+[[
+.data
+value QWORD 5 ; Define variable named value = 5.
+
+.code
+main PROC
+  mov rax, value ; :Load value into memory
+  inc rax ; Increment value by one
+  mov value, rax ; Store the incrememnted result back into 'value'
+  mov eax, dword ptr value ; Load the lower 32 bits of 'value' into EAX to use as the return code
+  ret
+main ENDP
+END
+]])
+compile="$ML64 $ML64FLAGS" link="$ML64 $ML64FLAGS $LDFLAGS" source=a.asm
 ])
 
+
 # Linker flags are not passed to the archiver, so don't test static libraries.
 if $LIBTOOL --features | $GREP 'enable shared libraries'; then
   library_and_module='library.la "module.la -module -avoid-version"'
diff --git a/tests/infer-tag.at b/tests/infer-tag.at
index e74fe8ed..cb16a126 100644
--- a/tests/infer-tag.at
+++ b/tests/infer-tag.at
@@ -162,6 +162,25 @@ AT_CHECK([$LIBTOOL --mode=compile $GCJ $GCJCFLAGS -c A.java],
 
 AT_CLEANUP
 
+AT_SETUP([ML64 inferred tag])
+LT_AT_TAG([ML64])
+AT_KEYWORDS([libtool])
+
+AT_DATA([a.asm],
+[[.code
+main PROC
+  mov eax, 5 ; Load constant value
+  inc eax ; Increment
+  ret ; Return result
+main ENDP
+end
+]])
+
+AT_CHECK([$LIBTOOL --mode=compile $ML64 $ML64FLAGS -c a.asm],
+	 [], [ignore], [ignore])
+
+AT_CLEANUP
+
 # Unsupported compiler check
 AT_SETUP([Unsupported compiler inferred tag check])
 AT_KEYWORDS([libtool])


From MAILER-DAEMON Thu Sep 18 10:54:16 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzG1Y-0000SE-Go
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-0000Ra-IT
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-00069K-8K
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id E87E3C039A1; Thu, 18 Sep 2025 10:54: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: <175820725438.16737.2660757752444219649@vcs2.savannah.gnu.org>
References: <175820725438.16737.2660757752444219649@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: e40fdc22cf727fb885f9df7d9affa827e3253d1c
Auto-Submitted: auto-generated
Message-Id: <20250918145414.E87E3C039A1@vcs2.savannah.gnu.org>
Date: Thu, 18 Sep 2025 10:54: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: Thu, 18 Sep 2025 14:54:16 -0000

branch: master
commit e40fdc22cf727fb885f9df7d9affa827e3253d1c
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Sep 18 16:43:33 2025 +0300

    version 2.6.0
    
    * NEWS: Record release date.
---
 NEWS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 09d201a2..ed703123 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
-* Noteworthy changes in release ?.? (????-??-??) [?]
+* Noteworthy changes in release 2.6.0 (2025-09-18) [alpha]
 
 ** New features:
 


From MAILER-DAEMON Thu Sep 18 10:54:16 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzG1Y-0000SL-SE
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-0000Rk-U3
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-00069L-Lc
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 1EE6BC039A3; Thu, 18 Sep 2025 10:54: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,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <175820725438.16737.2660757752444219649@vcs2.savannah.gnu.org>
References: <175820725438.16737.2660757752444219649@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: c4abf359f849187fa7f505a0a34f15f2bd66db24
Auto-Submitted: auto-generated
Message-Id: <20250918145415.1EE6BC039A3@vcs2.savannah.gnu.org>
Date: Thu, 18 Sep 2025 10:54: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: Thu, 18 Sep 2025 14:54:16 -0000

branch: master
commit c4abf359f849187fa7f505a0a34f15f2bd66db24
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Sep 18 17:16:22 2025 +0300

    maint: post-release administrivia
    
    * NEWS: Add header line for next release.
    * .prev-version: Record previous version.
    * cfg.mk (old_NEWS_hash): Auto-update.
---
 .prev-version | 2 +-
 NEWS          | 3 +++
 cfg.mk        | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.prev-version b/.prev-version
index fe16b348..e70b4523 100644
--- a/.prev-version
+++ b/.prev-version
@@ -1 +1 @@
-2.5.4
+2.6.0
diff --git a/NEWS b/NEWS
index ed703123..780b6079 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
+* Noteworthy changes in release ?.? (????-??-??) [?]
+
+
 * Noteworthy changes in release 2.6.0 (2025-09-18) [alpha]
 
 ** New features:
diff --git a/cfg.mk b/cfg.mk
index dbffbaf6..ecabe303 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -29,7 +29,7 @@ update-release-year:
 		m4/libtool.m4
 
 # Set format of NEWS.
-old_NEWS_hash := d51e62d3a4268be1a7b418b089c528d0
+old_NEWS_hash := 6b55a9c35959c8c4918110ff839bff7d
 
 manual_title = Portable Dynamic Shared Object Management
 


From MAILER-DAEMON Thu Sep 18 10:54:18 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzG1Z-0000Sq-W9
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-0000Rb-I0
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-00069J-8W
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id BE1C1C038C0; Thu, 18 Sep 2025 10:54:14 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: master updated (69736cd8 -> c4abf359)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175820725438.16737.2660757752444219649@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 69736cd828b76da6ad8257e96dd44bc0659b487d
X-Git-Newrev: c4abf359f849187fa7f505a0a34f15f2bd66db24
Auto-Submitted: auto-generated
Date: Thu, 18 Sep 2025 10:54: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: Thu, 18 Sep 2025 14:54:16 -0000

ildumi pushed a change to branch master.

    from 69736cd8 ltmain.in: Pass through all warning flags to the linker.
     new e40fdc22 version 2.6.0
     new c4abf359 maint: post-release administrivia


Summary of changes:
 .prev-version | 2 +-
 NEWS          | 3 +++
 cfg.mk        | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)


From MAILER-DAEMON Thu Sep 18 10:54:18 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzG1a-0000Sv-4D
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-0000Rj-U6
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54: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 1uzG1X-00069S-LZ
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 10:54:15 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 6688EC038C0; Thu, 18 Sep 2025 10:54:15 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: annotated tag v2.6.0 created (now 880b6b0a)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175820725443.16737.8236167649237959582@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/tags/v2.6.0
X-Git-Reftype: annotated tag
X-Git-Oldrev: 0000000000000000000000000000000000000000
X-Git-Newrev: 880b6b0aafbb87b90200e2a29bbe730b77446597
Auto-Submitted: auto-generated
Date: Thu, 18 Sep 2025 10:54: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: Thu, 18 Sep 2025 14:54:16 -0000

ildumi pushed a change to annotated tag v2.6.0.

      at 880b6b0a (tag)
 tagging e40fdc22cf727fb885f9df7d9affa827e3253d1c (commit)
 replaces v2.5.4
      by Ileana Dumitrescu
      on Thu Sep 18 16:43:39 2025 +0300

- Log -----------------------------------------------------------------
libtool 2.6.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE+ibKeEvhiJJ/IrmfZXDqARRvc1QFAmjMDIsACgkQZXDqARRv
c1R3WQ/9F/lmZh2x5RO02QzB8ERLX4TSLZ+2lT14aDVDY2E4acpLvHpRvrlzR0dE
rlZzLpg+nmlfHUKJoK617ncv53fdknvndYt2j06BC1lE2kv7qu53+wOAxBYwvyNu
eRDErl78giB7n7FwKY2DyytBeoTmXtL/ae3lEuDSHgGl1rHc+4QLKH77FggIxWxD
d0rNaPfD1P8FiM6IcWXpZw6gRoI9MdhpDWSQZxkx8Z02aH7GD4a9U1+JlWvGUgSo
w5akPUkFO+ZDasZixqdxcrh22Ty9AMYn+MPSbSABWyE7N164IUWA1SAQngOmVj2V
TSN8inh6YIy63GVRf8Fyv2gTc1nEk2j7IzIVfBVaPBje7yg/YG/fRS1adetsAn2F
R1F9NjRQ3f8q238utGMjiME4YKc1KZRbUC5ZMEzhUGDQ3r7i87iPvIt/SISCLCo5
koBanQVVpGNgQ0If0KXixuhIbHalqdjvv+GSvYgYicgerccDxPK3Dr4O24MLY60f
nF8yAjdRMEO0980eK5BBI2wn1r6RoyNDZ79fump3TKZJ3viTp6Iv8nBCbJhRUDby
CUV7oqr30MPb7h2kIS4pk5DR4doeqeGoqFnEf3TlwIegGl8WAhD7TLsn9/fXscUz
XHs0laZuuwzxjfDAfbUPCa0W/q58qPh0Q/Z502T+bm8Td6ccOkQ=
=4QlN
-----END PGP SIGNATURE-----
-----------------------------------------------------------------------

This annotated tag includes the following new commits:

     new e40fdc22 version 2.6.0



From MAILER-DAEMON Thu Sep 18 11:23:38 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzGTy-0002wo-5M
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:38 -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 1uzGTp-0002oO-T8
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:35 -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 1uzGTp-0002Sd-L1
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:29 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 88F62C039A3; Thu, 18 Sep 2025 11:23:28 -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: <175820900766.13264.529133379713840348@vcs2.savannah.gnu.org>
References: <175820900766.13264.529133379713840348@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 65b0515dc5132d028ea6d13d36c3e38ec62a2e29
Auto-Submitted: auto-generated
Message-Id: <20250918152328.88F62C039A3@vcs2.savannah.gnu.org>
Date: Thu, 18 Sep 2025 11:23:28 -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: Thu, 18 Sep 2025 15:23:36 -0000

branch: development
commit 65b0515dc5132d028ea6d13d36c3e38ec62a2e29
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Sep 18 17:16:22 2025 +0300

    maint: post-release administrivia
    
    * NEWS: Add header line for next release.
    * .prev-version: Record previous version.
    * cfg.mk (old_NEWS_hash): Auto-update.
---
 .prev-version | 2 +-
 NEWS          | 3 +++
 cfg.mk        | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.prev-version b/.prev-version
index fe16b348..e70b4523 100644
--- a/.prev-version
+++ b/.prev-version
@@ -1 +1 @@
-2.5.4
+2.6.0
diff --git a/NEWS b/NEWS
index ed703123..780b6079 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
+* Noteworthy changes in release ?.? (????-??-??) [?]
+
+
 * Noteworthy changes in release 2.6.0 (2025-09-18) [alpha]
 
 ** New features:
diff --git a/cfg.mk b/cfg.mk
index dbffbaf6..ecabe303 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -29,7 +29,7 @@ update-release-year:
 		m4/libtool.m4
 
 # Set format of NEWS.
-old_NEWS_hash := d51e62d3a4268be1a7b418b089c528d0
+old_NEWS_hash := 6b55a9c35959c8c4918110ff839bff7d
 
 manual_title = Portable Dynamic Shared Object Management
 


From MAILER-DAEMON Thu Sep 18 11:23:40 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzGU0-00031z-01
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:40 -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 1uzGTo-0002nP-Pq
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:35 -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 1uzGTo-0002SZ-Er
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:28 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 63E3AC039A1; Thu, 18 Sep 2025 11:23:28 -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: <175820900766.13264.529133379713840348@vcs2.savannah.gnu.org>
References: <175820900766.13264.529133379713840348@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: c7b6fc4b84c43e7982b409a4c9c26b6e38732ed9
Auto-Submitted: auto-generated
Message-Id: <20250918152328.63E3AC039A1@vcs2.savannah.gnu.org>
Date: Thu, 18 Sep 2025 11:23:28 -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: Thu, 18 Sep 2025 15:23:36 -0000

branch: development
commit c7b6fc4b84c43e7982b409a4c9c26b6e38732ed9
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Sep 18 16:43:33 2025 +0300

    version 2.6.0
    
    * NEWS: Record release date.
---
 NEWS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 09d201a2..ed703123 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
-* Noteworthy changes in release ?.? (????-??-??) [?]
+* Noteworthy changes in release 2.6.0 (2025-09-18) [alpha]
 
 ** New features:
 


From MAILER-DAEMON Thu Sep 18 11:23:42 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1uzGU1-00032m-TL
	for mharc-libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:42 -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 1uzGTp-0002oN-JA
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:35 -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 1uzGTp-0002SX-Bc
 for libtool-commit@gnu.org; Thu, 18 Sep 2025 11:23:29 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 2AA81C038C0; Thu, 18 Sep 2025 11:23:27 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: development updated (0e41ccbc -> 65b0515d)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175820900766.13264.529133379713840348@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: 0e41ccbc184b319475838f311c1a70e769549fa0
X-Git-Newrev: 65b0515dc5132d028ea6d13d36c3e38ec62a2e29
Auto-Submitted: auto-generated
Date: Thu, 18 Sep 2025 11:23:27 -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: Thu, 18 Sep 2025 15:23:36 -0000

ildumi pushed a change to branch development.

    from 0e41ccbc ltmain.in: Pass through all warning flags to the linker.
     new c7b6fc4b version 2.6.0
     new 65b0515d maint: post-release administrivia


Summary of changes:
 .prev-version | 2 +-
 NEWS          | 3 +++
 cfg.mk        | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)


From MAILER-DAEMON Mon Sep 29 14:57:28 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1v3J3t-0003Wu-VX
	for mharc-libtool-commit@gnu.org; Mon, 29 Sep 2025 14:57:27 -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 1v3J3n-0003Vz-1q
 for libtool-commit@gnu.org; Mon, 29 Sep 2025 14:57: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 1v3J3l-0001Yr-EC
 for libtool-commit@gnu.org; Mon, 29 Sep 2025 14:57:17 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 52C75C04597; Mon, 29 Sep 2025 14:57:16 -0400 (EDT)
Date: Mon, 29 Sep 2025 14:57:13 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: libtool.m4: Fix Objective C++ check
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175917223338.11357.17837797591503531570@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: 65b0515dc5132d028ea6d13d36c3e38ec62a2e29
X-Git-Newrev: bbcb9b23c65ec52f4c39858ddd8d50c2818d69bd
X-Git-Rev: bbcb9b23c65ec52f4c39858ddd8d50c2818d69bd
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: Mon, 29 Sep 2025 18:57:21 -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 bbcb9b23 libtool.m4: Fix Objective C++ check
bbcb9b23 is described below

commit bbcb9b23c65ec52f4c39858ddd8d50c2818d69bd
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri Sep 26 21:42:18 2025 +0300

    libtool.m4: Fix Objective C++ check
    
    The check for Objective C++ was combined with the check for
    Objective C, which caused Objective C++ tests to fail if language
    support was enabled for OBJC but not OBJCXX. Additionally, a syntax
    error with macros LT_PROG_OBJC and LT_PROG_OBJCXX was observed on
    Fedora, exhibiting differing behaviour than observed on other
    GNU/Linux operating systems.
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79468
    
    * m4/libtool.m4: Add separate check for Objective C++.
    * tests/flags.at, tests/infer-tag.at: Update to check cached variable
      for Objective C++, objcxx_compiles.
---
 m4/libtool.m4      | 42 ++++++++++++++++++++++++++++++++++++++----
 tests/flags.at     |  4 +++-
 tests/infer-tag.at |  2 +-
 3 files changed, 42 insertions(+), 6 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 5ccb3a81..b758ae5a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -534,7 +534,38 @@ m4_defun([_LT_OBJECTIVE_C], [
   )
   objc_compiles=$lt_cv_objc_compiles
   _LT_DECL([], [objc_compiles], [1],
-    [Check for compiling Objective C and C++ code])
+    [Check for compiling Objective C code])
+])
+
+# _LT_OBJECTIVE_CXX
+# ------------------------------
+m4_defun([_LT_OBJECTIVE_CXX], [
+  AC_CACHE_CHECK([for Objective C++ compilation],
+    [lt_cv_objcxx_compiles],
+    [ save_CFLAGS=$CFLAGS
+      CFLAGS=$OBJCXXFLAGS
+      AC_COMPILE_IFELSE(
+        [AC_LANG_PROGRAM([#import <Foundation/Foundation.h>
+@interface Addition : NSObject
+- (int)this:(int)a that:(int)b;
+@end
+
+@implementation Addition
+- (int)this:(int)a that:(int)b
+{
+  return a + b;
+}
+@end
+],[])],
+        lt_cv_objcxx_compiles=yes,
+        lt_cv_objcxx_compiles=no
+      )
+      CFLAGS=$save_CFLAGS
+    ]
+  )
+  objcxx_compiles=$lt_cv_objcxx_compiles
+  _LT_DECL([], [objcxx_compiles], [1],
+    [Check for compiling Objective C++ code])
 ])
 
 m4_defun([_LT_ML64], [
@@ -8529,7 +8560,10 @@ _LT_COMPILER_BOILERPLATE
 _LT_LINKER_BOILERPLATE
 
 # Check for compilation issues with OBJCXX flags
-_LT_OBJECTIVE_C
+_LT_OBJECTIVE_CXX
+if test "yes" = "$lt_cv_gnustep_exists"; then
+  OBJCXXFLAGS="$OBJCXXFLAGS `gnustep-config --objc-flags`"
+fi
 
 # Allow CC to be a program name with arguments.
 lt_save_CC=$CC
@@ -8637,7 +8671,7 @@ AC_DEFUN([LT_PROG_OBJC],
   if test Xgnustep-config = X"$GNUSTEP_CONFIG"; then
     test set = "${OBJCFLAGS+set}" || OBJCFLAGS="`gnustep-config --objc-flags`"
   fi
-  AC_SUBST(OBJCFLAGS)])])[]dnl
+  AC_SUBST(OBJCFLAGS)])[]dnl
 ])
 
 # LT_PROG_OBJCXX
@@ -8648,7 +8682,7 @@ AC_DEFUN([LT_PROG_OBJCXX],
   if test Xgnustep-config = X"$GNUSTEP_CONFIG"; then
     test set = "${OBJCXXFLAGS+set}" || OBJCXXFLAGS="`gnustep-config --objc-flags`"
   fi
-  AC_SUBST(OBJCXXFLAGS)])])[]dnl
+  AC_SUBST(OBJCXXFLAGS)])[]dnl
 ])
 
 # LT_PROG_GCJ
diff --git a/tests/flags.at b/tests/flags.at
index 7aa435c7..9fdadd02 100644
--- a/tests/flags.at
+++ b/tests/flags.at
@@ -128,8 +128,10 @@ fi
 
 eval "`$LIBTOOL --tag=lt_tag --config | $EGREP '^(wl|archive_cmds)='`"
 
-if test OBJC = lt_tag || test OBJCXX = lt_tag; then
+if test OBJC = lt_tag; then
   AT_CHECK([$LIBTOOL --config | $EGREP '^objc_compiles="no"' && (exit 77)], 1)
+elif test OBJCXX = lt_tag; then
+  AT_CHECK([$LIBTOOL --config | $EGREP '^objcxx_compiles="no"' && (exit 77)], 1)
 fi
 
 AT_CHECK([$LIBTOOL --tag=lt_tag --mode=compile $compile -c $source],
diff --git a/tests/infer-tag.at b/tests/infer-tag.at
index cb16a126..5299f01c 100644
--- a/tests/infer-tag.at
+++ b/tests/infer-tag.at
@@ -88,7 +88,7 @@ AT_SETUP([OBJCXX inferred tag])
 LT_AT_TAG([OBJCXX])
 AT_KEYWORDS([libtool])
 
-AT_CHECK([$LIBTOOL --config | $EGREP '^objc_compiles="no"' && (exit 77)], 1)
+AT_CHECK([$LIBTOOL --config | $EGREP '^objcxx_compiles="no"' && (exit 77)], 1)
 
 AT_DATA([a.mm],
 [[


From MAILER-DAEMON Tue Sep 30 13:21:47 2025
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1v3e2s-0008P9-In
	for mharc-libtool-commit@gnu.org; Tue, 30 Sep 2025 13:21:47 -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 1v3e2m-0008Ol-2Z
 for libtool-commit@gnu.org; Tue, 30 Sep 2025 13:21:41 -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 1v3e2l-0001us-IZ
 for libtool-commit@gnu.org; Tue, 30 Sep 2025 13:21:39 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id EA049C04583; Tue, 30 Sep 2025 13:21:38 -0400 (EDT)
Date: Tue, 30 Sep 2025 13:21:35 -0400
To: libtool-commit@gnu.org
Subject: branch development updated: libtool.m4: Fix syntax error in
 LT_PROG_OBJC and LT_PROG_OBJCXX
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <175925289546.14852.15628942844673198906@vcs2.savannah.gnu.org>
Reply-To: Frederic Berat <fberat@redhat.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: bbcb9b23c65ec52f4c39858ddd8d50c2818d69bd
X-Git-Newrev: 53f8ca1d4872dbee1e5a6d0f344df66f0f64f4f9
X-Git-Rev: 53f8ca1d4872dbee1e5a6d0f344df66f0f64f4f9
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, 30 Sep 2025 17:21:41 -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 53f8ca1d libtool.m4: Fix syntax error in LT_PROG_OBJC and LT_PROG_OBJCXX
53f8ca1d is described below

commit 53f8ca1d4872dbee1e5a6d0f344df66f0f64f4f9
Author: Frederic Berat <fberat@redhat.com>
AuthorDate: Tue Sep 30 17:04:00 2025 +0300

    libtool.m4: Fix syntax error in LT_PROG_OBJC and LT_PROG_OBJCXX
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79468
---
 m4/libtool.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index b758ae5a..2f5d0e3c 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -8671,7 +8671,7 @@ AC_DEFUN([LT_PROG_OBJC],
   if test Xgnustep-config = X"$GNUSTEP_CONFIG"; then
     test set = "${OBJCFLAGS+set}" || OBJCFLAGS="`gnustep-config --objc-flags`"
   fi
-  AC_SUBST(OBJCFLAGS)])[]dnl
+  AC_SUBST(OBJCFLAGS)[]dnl
 ])
 
 # LT_PROG_OBJCXX
@@ -8682,7 +8682,7 @@ AC_DEFUN([LT_PROG_OBJCXX],
   if test Xgnustep-config = X"$GNUSTEP_CONFIG"; then
     test set = "${OBJCXXFLAGS+set}" || OBJCXXFLAGS="`gnustep-config --objc-flags`"
   fi
-  AC_SUBST(OBJCXXFLAGS)])[]dnl
+  AC_SUBST(OBJCXXFLAGS)[]dnl
 ])
 
 # LT_PROG_GCJ


