From MAILER-DAEMON Fri Feb 13 11:55:53 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vqwSP-0001i7-6T
	for mharc-libtool-commit@gnu.org; Fri, 13 Feb 2026 11:55:53 -0500
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 1vqwSH-0001hc-CQ
 for libtool-commit@gnu.org; Fri, 13 Feb 2026 11:55:47 -0500
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 1vqwSF-00016X-Ov
 for libtool-commit@gnu.org; Fri, 13 Feb 2026 11:55:44 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 68DA7C0657E; Fri, 13 Feb 2026 11:55:43 -0500 (EST)
Date: Fri, 13 Feb 2026 11:55:43 -0500
To: libtool-commit@gnu.org
Subject: branch development updated: ltmain.in: Handle clang's -resource-dir
 flag.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <177100174299.7163.12505768395430683583@vcs2.savannah.gnu.org>
Reply-To: Alexey Samsonov <vonosmas@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: 016405ab1ea23c6838431f30b37c0a3bfd477a50
X-Git-Newrev: f33b1b9a4eaca4419014df5c7208f105349667fc
X-Git-Rev: f33b1b9a4eaca4419014df5c7208f105349667fc
X-Git-NotificationType: ref_changed_plus_diff
X-Git-Multimail-Version: 1.6.dev
Auto-Submitted: auto-generated
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Feb 2026 16:55:49 -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 f33b1b9a ltmain.in: Handle clang's -resource-dir flag.
f33b1b9a is described below

commit f33b1b9a4eaca4419014df5c7208f105349667fc
Author: Alexey Samsonov <vonosmas@gmail.com>
AuthorDate: Wed Feb 11 08:07:26 2026 +0000

    ltmain.in: Handle clang's -resource-dir flag.
    
    When Clang is used to cross compile, the user may list
    -resource-dir flag that Clang driver uses to discover
    target-specific headers and runtime libraries.
    
    * build-aux/ltmain.in: Pass clang's '-resource-dir=*' flag for
      choosing compiler resource files, such as runtime libraries
      through libtool unchanged.
    * NEWS: Update.
---
 NEWS                | 4 ++++
 build-aux/ltmain.in | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 0daedf1c..098b781a 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ NEWS - list of user-visible changes between releases of GNU Libtool
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** New features:
+
+  - Pass 'resource-dir=*' flag for Clang.
+
 ** Bug fixes:
 
   - Store cygpath file path conversions correctly for MSYS2 and MSVC.
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index d58b232b..9108006c 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5660,6 +5660,7 @@ func_mode_link ()
       # -fuse-ld=*           Linker select flags for GCC
       # -static-*            direct GCC to link specific libraries statically
       # -fcilkplus           Cilk Plus language extension features for C/C++
+      # -resource-dir=*      for selecting compiler resource directory with clang
       # -rtlib=*             select c runtime lib with clang
       # --unwindlib=*        select unwinder library with clang
       # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
@@ -5668,7 +5669,7 @@ func_mode_link ()
       -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| \
-      -stdlib=*|-rtlib=*|--unwindlib=*| \
+      -stdlib=*|-resource-dir=*|-rtlib=*|--unwindlib=*| \
       -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| \


From MAILER-DAEMON Mon Feb 16 11:57:26 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vs1uX-0002dd-Ka
	for mharc-libtool-commit@gnu.org; Mon, 16 Feb 2026 11:57:25 -0500
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 1vs1uI-0002UK-53
 for libtool-commit@gnu.org; Mon, 16 Feb 2026 11:57:14 -0500
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 1vs1uH-0003c0-Ss
 for libtool-commit@gnu.org; Mon, 16 Feb 2026 11:57:09 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 37A94C08D48; Mon, 16 Feb 2026 11:57:09 -0500 (EST)
Date: Mon, 16 Feb 2026 11:57:08 -0500
To: libtool-commit@gnu.org
Subject: branch development updated: libtool: Use echo in archive_cmds and
 archive_expsym_cmds on OS/2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <177126102872.6672.13993231565546750695@vcs2.savannah.gnu.org>
Reply-To: KO Myung-Hun <komh78@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: f33b1b9a4eaca4419014df5c7208f105349667fc
X-Git-Newrev: 47600e99c6eab1e0c649428eb915c924ba93e538
X-Git-Rev: 47600e99c6eab1e0c649428eb915c924ba93e538
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, 16 Feb 2026 16:57:15 -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 47600e99 libtool: Use echo in archive_cmds and archive_expsym_cmds on OS/2
47600e99 is described below

commit 47600e99c6eab1e0c649428eb915c924ba93e538
Author: KO Myung-Hun <komh78@gmail.com>
AuthorDate: Mon Feb 16 16:19:21 2026 +0900

    libtool: Use echo in archive_cmds and archive_expsym_cmds on OS/2
    
    This fixes that building DLLs fails because $ECHO does not work when it
    is set to "printf %s\n".
    
    * m4/libtool.m4 (archive_cmds) [os2*]: Replace $ECHO with echo
    (archive_expsym_cmds) [os2*]: Likewise.
---
 m4/libtool.m4 | 48 ++++++++++++++++++++++++------------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 9e88db3f..d8627ba2 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -5426,17 +5426,17 @@ _LT_EOF
       _LT_TAGVAR(hardcode_minus_L, $1)=yes
       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
       shrext_cmds=.dll
-      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	$ECHO EXPORTS >> $output_objdir/$libname.def~
+      _LT_TAGVAR(archive_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	echo EXPORTS >> $output_objdir/$libname.def~
 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 	emximp -o $lib $output_objdir/$libname.def'
-      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	$ECHO EXPORTS >> $output_objdir/$libname.def~
+      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	echo EXPORTS >> $output_objdir/$libname.def~
 	prefix_cmds="$SED"~
 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 	  prefix_cmds="$prefix_cmds -e 1d";
@@ -6147,17 +6147,17 @@ _LT_EOF
       _LT_TAGVAR(hardcode_minus_L, $1)=yes
       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
       shrext_cmds=.dll
-      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	$ECHO EXPORTS >> $output_objdir/$libname.def~
+      _LT_TAGVAR(archive_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	echo EXPORTS >> $output_objdir/$libname.def~
 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 	emximp -o $lib $output_objdir/$libname.def'
-      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	$ECHO EXPORTS >> $output_objdir/$libname.def~
+      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	echo EXPORTS >> $output_objdir/$libname.def~
 	prefix_cmds="$SED"~
 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 	  prefix_cmds="$prefix_cmds -e 1d";
@@ -7025,17 +7025,17 @@ if test yes != "$_lt_caught_CXX_error"; then
 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 	shrext_cmds=.dll
-	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	  $ECHO EXPORTS >> $output_objdir/$libname.def~
+	_LT_TAGVAR(archive_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	  echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	  echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	  echo EXPORTS >> $output_objdir/$libname.def~
 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 	  emximp -o $lib $output_objdir/$libname.def'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
-	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
-	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
-	  $ECHO EXPORTS >> $output_objdir/$libname.def~
+	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+	  echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+	  echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+	  echo EXPORTS >> $output_objdir/$libname.def~
 	  prefix_cmds="$SED"~
 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
 	    prefix_cmds="$prefix_cmds -e 1d";


From MAILER-DAEMON Wed Feb 25 13:23:46 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vvJY2-0006QU-My
	for mharc-libtool-commit@gnu.org; Wed, 25 Feb 2026 13:23:46 -0500
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 1vvJXv-0006PQ-5D
 for libtool-commit@gnu.org; Wed, 25 Feb 2026 13:23:40 -0500
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 1vvJXu-0005xe-Sp
 for libtool-commit@gnu.org; Wed, 25 Feb 2026 13:23:38 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id C5266C08E8C; Wed, 25 Feb 2026 13:23:38 -0500 (EST)
Date: Wed, 25 Feb 2026 13:23:38 -0500
To: libtool-commit@gnu.org
Subject: branch development updated: ltmain.in: Recognise explicit shared
 library args
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <177204381832.16674.4168804043996870393@vcs2.savannah.gnu.org>
Reply-To: Nicolas Boulenguez <nicolas@debian.org>
X-Git-Host: vcs2.savannah.gnu.org
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: 47600e99c6eab1e0c649428eb915c924ba93e538
X-Git-Newrev: f10d6a6c838d53bb6090153b2cce58f90f8e4511
X-Git-Rev: f10d6a6c838d53bb6090153b2cce58f90f8e4511
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, 25 Feb 2026 18:23:40 -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 f10d6a6c ltmain.in: Recognise explicit shared library args
f10d6a6c is described below

commit f10d6a6c838d53bb6090153b2cce58f90f8e4511
Author: Nicolas Boulenguez <nicolas@debian.org>
AuthorDate: Mon Feb 23 17:32:35 2026 +0100

    ltmain.in: Recognise explicit shared library args
    
    When linking a program, GNU Libtool recognises libfoo.so arguments, but
    it does not when linking shared libraries. Now, libfoo.so will be
    equivalent to linking with -l:libfoo.so or -lfoo.
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54726
    
    * build-aux/ltmain.in: Link an explicit shared library.
    * Makefile.am: Add new test file, deplib-path.at.
    * tests/deplib-path.at: Add new test for shared linking deplibs by the
      libN.so name.
---
 Makefile.am          |  1 +
 build-aux/ltmain.in  | 23 ++++++++++++--
 tests/deplib-path.at | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 111 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 02d80926..52e00476 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -693,6 +693,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/execute-mode.at \
 		  tests/bindir.at \
 		  tests/cwrapper.at \
+		  tests/deplib-path.at \
 		  tests/deplib-in-subdir.at \
 		  tests/infer-tag.at \
 		  tests/localization.at \
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 9108006c..df85f00b 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5795,8 +5795,8 @@ func_mode_link ()
 	fi
 	;;
 
-      *.$libext)
-	# An archive.
+      *.$libext|*.so)
+	# An archive or an explicit shared library.
 	func_append deplibs " $arg"
 	func_append old_deplibs " $arg"
 	continue
@@ -6174,6 +6174,25 @@ func_mode_link ()
 	  func_resolve_sysroot "$deplib"
 	  lib=$func_resolve_sysroot_result
 	  ;;
+	 *.so)
+	   case $linkmode,$pass in
+	     lib,*)
+	       deplibs="$deplib $deplibs"
+	       newdependency_libs="$deplib $newdependency_libs"
+	       ;;
+	     prog,link)
+	       compile_deplibs="$deplib $compile_deplibs"
+	       finalize_deplibs="$deplib $finalize_deplibs"
+	       ;;
+	     prog,*)
+	       deplibs="$deplib $deplibs"
+	       ;;
+	     *)
+	       func_warning "'$deplib' is ignored for archives/objects"
+	       ;;
+	   esac
+	   continue
+	   ;;
 	*.$libext)
 	  if test conv = "$pass"; then
 	    deplibs="$deplib $deplibs"
diff --git a/tests/deplib-path.at b/tests/deplib-path.at
new file mode 100644
index 00000000..0b2df158
--- /dev/null
+++ b/tests/deplib-path.at
@@ -0,0 +1,89 @@
+# deplib-path.at -- test shared linking deplibs by libN.so name -*- Autotest -*-
+#
+#   Copyright (C) 2020-2026 Free Software Foundation, Inc.
+#   Written by Nicolas Boulenguez, 2020-2026
+#
+#   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/>.
+####
+
+# Ensures libN.so -l:libN.so -lN are equivalent
+
+AT_SETUP([shared linking deplibs by libN.so name])
+
+case $host_os in
+linux*) ;;
+*) noskip=false ;;
+esac
+
+AT_CHECK([$noskip || (exit 77)])
+
+AT_DATA([one.c],
+[[
+int one(void) { return 1; }
+]])
+
+AT_DATA([two.c],
+[[
+int two(void) { return 2; }
+]])
+
+AT_DATA([three.c],
+[[
+int three(void) { return 3; }
+]])
+
+AT_DATA([sum.c],
+[[
+extern int one(void);
+extern int two(void);
+extern int three(void);
+int sum(void) { return one()+two()+three(); }
+]])
+
+AT_DATA([configure.ac],
+[[
+AC_INIT([deplib-path], ]AT_PACKAGE_VERSION[, ]AT_PACKAGE_BUGREPORT[)
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
+AM_INIT_AUTOMAKE
+AC_PROG_CC
+LT_INIT
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+]])
+
+AT_DATA([Makefile.am],
+[[
+AUTOMAKE_OPTIONS = no-dependencies foreign
+ACLOCAL_AMFLAGS = -I m4
+AM_LDFLAGS = -no-undefined
+lib_LTLIBRARIES = libsum.la
+libsum_la_SOURCES = sum.c
+libsum_la_LIBADD = libone.so -L. -l:libtwo.so -lthree
+EXTRA_libsum_la_DEPENDENCIES = libtwo.so libthree.so
+libone.so libtwo.so libthree.so: CFLAGS += -fPIC
+libone.so libtwo.so libthree.so: lib%.so: %.o
+	$(LINK.c) -shared -o $@ $^
+]])
+
+LT_AT_LIBTOOLIZE
+LT_AT_ACLOCAL([-I m4])
+LT_AT_AUTOMAKE([--add-missing])
+LT_AT_AUTOCONF
+LT_AT_CONFIGURE
+LT_AT_MAKE
+
+AT_CLEANUP


From MAILER-DAEMON Sat Feb 28 13:26:09 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vwP0z-00077b-1N
	for mharc-libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:09 -0500
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 1vwP0x-00075g-Dr
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
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 1vwP0x-0003ku-5s
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 6277DC08E86; Sat, 28 Feb 2026 13:26:06 -0500 (EST)
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, Dima Pasechnik <dima@pasechnik.info>
In-Reply-To: <177230316545.2352.712971403297990505@vcs2.savannah.gnu.org>
References: <177230316545.2352.712971403297990505@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: fa18359d6011eb986951915ffcd37b4289281b53
Auto-Submitted: auto-generated
Message-Id: <20260228182606.6277DC08E86@vcs2.savannah.gnu.org>
Date: Sat, 28 Feb 2026 13:26:06 -0500 (EST)
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, 28 Feb 2026 18:26:07 -0000

branch: development
commit fa18359d6011eb986951915ffcd37b4289281b53
Author: Dima Pasechnik <dima@pasechnik.info>
AuthorDate: Thu Feb 26 14:19:52 2026 -0600

    ltmain.in: Support OpenMP with macOS clang
    
    llvm's OpenMP library using the macOS clang compiler requires prefixing the
    '-fopenmp' option with '-Xpreprocessor' non-standard option.
    
    Reported: https://lists.gnu.org/archive/html/libtool/2026-02/msg00002.html
    
    * build-aux/ltmain.in: Process '-Xpreprocessor -fopenmp' as one token.
---
 build-aux/ltmain.in | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index df85f00b..67175443 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -4944,6 +4944,16 @@ func_mode_link ()
     # See if our shared archives depend on static archives.
     test -n "$old_archive_from_new_cmds" && build_old_libs=yes
 
+    # make sure "-Xpreprocessor -fopenmp" is processed as one token
+    case $@ in
+    *-Xpreprocessor\ -fopenmp*)
+      fopenmp_match="-Xpreprocessor -fopenmp"
+      ;;
+    *)
+      fopenmp_match=-fopenmp
+      ;;
+    esac
+
     # Go through the arguments, transforming them on the way.
     while test "$#" -gt 0; do
       arg=$1
@@ -5433,7 +5443,7 @@ func_mode_link ()
 	continue
 	;;
       -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
-      |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+      |-threads|$fopenmp_match|fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
 	func_append compiler_flags " $arg"
 	func_append compile_command " $arg"
 	func_append finalize_command " $arg"
@@ -6024,7 +6034,7 @@ func_mode_link ()
        continue
        ;;
 	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
-        |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+        |-threads|$fopenmp_match|fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
 	  if test prog,link = "$linkmode,$pass"; then
 	    compile_deplibs="$deplib $compile_deplibs"
 	    finalize_deplibs="$deplib $finalize_deplibs"


From MAILER-DAEMON Sat Feb 28 13:26:09 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vwP0z-00078g-Lv
	for mharc-libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:09 -0500
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 1vwP0x-00075h-Ed
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
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 1vwP0x-0003kt-6S
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 50D48C08E91; Sat, 28 Feb 2026 13:26:05 -0500 (EST)
To: libtool-commit@gnu.org
Subject: development updated (f10d6a6c -> 0e9f8e1d)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <177230316545.2352.712971403297990505@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Oldrev: f10d6a6c838d53bb6090153b2cce58f90f8e4511
X-Git-Newrev: 0e9f8e1da34b3bcdbe5a4b0ea5dd37225b6c3d96
Auto-Submitted: auto-generated
Date: Sat, 28 Feb 2026 13:26:05 -0500 (EST)
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, 28 Feb 2026 18:26:07 -0000

ildumi pushed a change to branch development.

    from f10d6a6c ltmain.in: Recognise explicit shared library args
     new fa18359d ltmain.in: Support OpenMP with macOS clang
     new 0e9f8e1d NEWS: Update for previous commit


Summary of changes:
 NEWS                |  3 +++
 build-aux/ltmain.in | 14 ++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)


From MAILER-DAEMON Sat Feb 28 13:26:09 2026
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1vwP0z-00077u-7V
	for mharc-libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:09 -0500
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 1vwP0x-00075f-Ct
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
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 1vwP0x-0003kv-4g
 for libtool-commit@gnu.org; Sat, 28 Feb 2026 13:26:07 -0500
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id C33C5C08E8B; Sat, 28 Feb 2026 13:26:06 -0500 (EST)
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: <177230316545.2352.712971403297990505@vcs2.savannah.gnu.org>
References: <177230316545.2352.712971403297990505@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/development
X-Git-Reftype: branch
X-Git-Rev: 0e9f8e1da34b3bcdbe5a4b0ea5dd37225b6c3d96
Auto-Submitted: auto-generated
Message-Id: <20260228182606.C33C5C08E8B@vcs2.savannah.gnu.org>
Date: Sat, 28 Feb 2026 13:26:06 -0500 (EST)
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, 28 Feb 2026 18:26:07 -0000

branch: development
commit 0e9f8e1da34b3bcdbe5a4b0ea5dd37225b6c3d96
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Sat Feb 28 20:21:19 2026 +0200

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

diff --git a/NEWS b/NEWS
index 098b781a..9dba0fae 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ NEWS - list of user-visible changes between releases of GNU Libtool
 
   - Pass 'resource-dir=*' flag for Clang.
 
+  - Support OpenMP with macOS clang by processing '-Xpreprocessor
+    -fopenmp' as one token.
+
 ** Bug fixes:
 
   - Store cygpath file path conversions correctly for MSYS2 and MSVC.


