From MAILER-DAEMON Mon Apr 08 16:01:16 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1rtvB5-0004iy-OJ
	for mharc-libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:15 -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 1rtvB3-0004iK-VU
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -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 1rtvB3-0000Uk-A1
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 3DA45C12C3D; Mon,  8 Apr 2024 16:01:13 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <171260647249.30011.9254583558447731437@vcs2.savannah.gnu.org>
References: <171260647249.30011.9254583558447731437@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 88fc2b892c61f6ef57decc55abe03ec6734f27ec
Auto-Submitted: auto-generated
Message-Id: <20240408200113.3DA45C12C3D@vcs2.savannah.gnu.org>
Date: Mon,  8 Apr 2024 16:01:13 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Apr 2024 20:01:14 -0000

branch: master
commit 88fc2b892c61f6ef57decc55abe03ec6734f27ec
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Mon Apr 8 22:34:19 2024 +0300

    libtool: Remove test_compile
    
    This is cleanup for libtool. The option test_compile is not used in
    libtool, and the documentation states that it would probably be dropped
    in the future.
    
    * build-aux/ltmain.in: Remove case statement for test_compile.
    * doc/libtool.texi: Remove test_compile from documentation.
    * m4/libtool.m4: Remove test_compile definition from macro file.
---
 build-aux/ltmain.in | 102 ----------------------------------------------------
 doc/libtool.texi    |   7 ----
 m4/libtool.m4       |   1 -
 3 files changed, 110 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index c1d28856..090a4fe8 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -7314,108 +7314,6 @@ func_mode_link ()
 	  # implementing what was already the behavior.
 	  newdeplibs=$deplibs
 	  ;;
-	test_compile)
-	  # This code stresses the "libraries are programs" paradigm to its
-	  # limits. Maybe even breaks it.  We compile a program, linking it
-	  # against the deplibs as a proxy for the library.  Then we can check
-	  # whether they linked in statically or dynamically with ldd.
-	  $opt_dry_run || $RM conftest.c
-	  cat > conftest.c <<EOF
-	  int main() { return 0; }
-EOF
-	  $opt_dry_run || $RM conftest
-	  if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
-	    ldd_output=`ldd conftest`
-	    for i in $deplibs; do
-	      case $i in
-	      -l*)
-		func_stripname -l '' "$i"
-		name=$func_stripname_result
-		if test yes = "$allow_libtool_libs_with_static_runtimes"; then
-		  case " $predeps $postdeps " in
-		  *" $i "*)
-		    func_append newdeplibs " $i"
-		    i=
-		    ;;
-		  esac
-		fi
-		if test -n "$i"; then
-		  libname=`eval "\\$ECHO \"$libname_spec\""`
-		  deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
-		  set dummy $deplib_matches; shift
-		  deplib_match=$1
-		  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
-		    func_append newdeplibs " $i"
-		  else
-		    droppeddeps=yes
-		    echo
-		    $ECHO "*** Warning: dynamic linker does not accept needed library $i."
-		    echo "*** I have the capability to make that library automatically link in when"
-		    echo "*** you link to this library.  But I can only do this if you have a"
-		    echo "*** shared version of the library, which I believe you do not have"
-		    echo "*** because a test_compile did reveal that the linker did not use it for"
-		    echo "*** its dynamic dependency list that programs get resolved with at runtime."
-		  fi
-		fi
-		;;
-	      *)
-		func_append newdeplibs " $i"
-		;;
-	      esac
-	    done
-	  else
-	    # Error occurred in the first compile.  Let's try to salvage
-	    # the situation: Compile a separate program for each library.
-	    for i in $deplibs; do
-	      case $i in
-	      -l*)
-		func_stripname -l '' "$i"
-		name=$func_stripname_result
-		$opt_dry_run || $RM conftest
-		if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
-		  ldd_output=`ldd conftest`
-		  if test yes = "$allow_libtool_libs_with_static_runtimes"; then
-		    case " $predeps $postdeps " in
-		    *" $i "*)
-		      func_append newdeplibs " $i"
-		      i=
-		      ;;
-		    esac
-		  fi
-		  if test -n "$i"; then
-		    libname=`eval "\\$ECHO \"$libname_spec\""`
-		    deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
-		    set dummy $deplib_matches; shift
-		    deplib_match=$1
-		    if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
-		      func_append newdeplibs " $i"
-		    else
-		      droppeddeps=yes
-		      echo
-		      $ECHO "*** Warning: dynamic linker does not accept needed library $i."
-		      echo "*** I have the capability to make that library automatically link in when"
-		      echo "*** you link to this library.  But I can only do this if you have a"
-		      echo "*** shared version of the library, which you do not appear to have"
-		      echo "*** because a test_compile did reveal that the linker did not use this one"
-		      echo "*** as a dynamic dependency that programs can get resolved with at runtime."
-		    fi
-		  fi
-		else
-		  droppeddeps=yes
-		  echo
-		  $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
-		  echo "*** make it link in!  You will probably need to install it or some"
-		  echo "*** library that it depends on before this library will be fully"
-		  echo "*** functional.  Installing it before continuing would be even better."
-		fi
-		;;
-	      *)
-		func_append newdeplibs " $i"
-		;;
-	      esac
-	    done
-	  fi
-	  ;;
 	file_magic*)
 	  set dummy $deplibs_check_method; shift
 	  file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 664e5495..aabc495a 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -5516,13 +5516,6 @@ for a match against the extended regular expression @var{regex}.  When
 argument to @samp{$file_magic_cmd} to verify whether the
 regular expression matches its output, and warn the user otherwise.
 
-@item test_compile
-@vindex test_compile
-just checks whether it is possible to link a program out of a list of
-libraries, and checks which of those are listed in the output of
-@code{ldd}.  It is currently unused, and will probably be dropped in the
-future.
-
 @item pass_all
 @vindex pass_all
 will pass everything without any checking.  This may work on platforms
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 66b12b5a..6a2f419a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -3452,7 +3452,6 @@ lt_cv_deplibs_check_method='unknown'
 # 'none' -- dependencies not supported.
 # 'unknown' -- same as none, but documents that we really don't know.
 # 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
 # 'file_magic [[regex]]' -- check by looking for files in library path
 # that responds to the $file_magic_cmd with a given extended regex.
 # If you have 'file' or equivalent on your system and you're not sure


From MAILER-DAEMON Mon Apr 08 16:01:17 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1rtvB6-0004j6-9B
	for mharc-libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:17 -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 1rtvB3-0004iJ-VC
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -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 1rtvB2-0000Ui-V1
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id DB5EFC12C3C; Mon,  8 Apr 2024 16:01:12 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: master updated (3a82c4aa -> 88fc2b89)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <171260647249.30011.9254583558447731437@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 3a82c4aa8c9c7c621c6a3de3fd9573d88d7ba3c8
X-Git-Newrev: 88fc2b892c61f6ef57decc55abe03ec6734f27ec
Auto-Submitted: auto-generated
Date: Mon,  8 Apr 2024 16:01:12 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Apr 2024 20:01:14 -0000

ildumi pushed a change to branch master.

    from 3a82c4aa libtool: Add more test case descriptions
     new 2eddb600 libtool: HACKING file list of files not to edit updated
     new 88fc2b89 libtool: Remove test_compile


Summary of changes:
 HACKING             |  13 +++++++
 build-aux/ltmain.in | 102 ----------------------------------------------------
 doc/libtool.texi    |   7 ----
 m4/libtool.m4       |   1 -
 4 files changed, 13 insertions(+), 110 deletions(-)


From MAILER-DAEMON Mon Apr 08 16:01:17 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1rtvB7-0004jP-Fn
	for mharc-libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:17 -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 1rtvB3-0004iI-Uk
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -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 1rtvB3-0000Uj-3B
 for libtool-commit@gnu.org; Mon, 08 Apr 2024 16:01:13 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 0DA86C12C3B; Mon,  8 Apr 2024 16:01:13 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <171260647249.30011.9254583558447731437@vcs2.savannah.gnu.org>
References: <171260647249.30011.9254583558447731437@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 2eddb6004b22a9e8c47fa14ffc1ff4673ccb05e0
Auto-Submitted: auto-generated
Message-Id: <20240408200113.0DA86C12C3B@vcs2.savannah.gnu.org>
Date: Mon,  8 Apr 2024 16:01:12 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Apr 2024 20:01:14 -0000

branch: master
commit 2eddb6004b22a9e8c47fa14ffc1ff4673ccb05e0
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri Apr 5 21:45:26 2024 +0300

    libtool: HACKING file list of files not to edit updated
    
    The HACKING file lists some files not to edit that are part of gnulib.
    The contents for this list has been expanded to include various files,
    including some m4 files.
    
    * HACKING: Added other symbolic links to list of files not to edit.
---
 HACKING | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/HACKING b/HACKING
index 38401c9c..20d65e9a 100644
--- a/HACKING
+++ b/HACKING
@@ -37,6 +37,8 @@ and is not part of a release distribution.
 	COPYING
 	INSTALL
 	doc/
+	    + gendocs_template
+	    + gendocs_template_min
 	    + fdl.texi
 	libltdl/
 	    + COPYING.LIB
@@ -49,6 +51,17 @@ and is not part of a release distribution.
 	    + mdate-sh
 	    + missing
 	    + texinfo.tex
+	m4/
+	    + 00gnulib.m4
+	    + gnulib-cache.m4
+	    + gnulib-common.m4
+	    + gnu-comp.m4
+	    + gnulib-tool.m4
+	    + ltversion.m4
+	    + zzgnulib.m4
+	GNUmakefile
+	maint.mk
+
   The ones that are important for a release can be updated by ensuring
   gnulib is up-to-date, and running 'bootstrap' to recheck the links are
   correct.


From MAILER-DAEMON Thu Apr 18 12:39:25 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1rxUnF-00040R-Ks
	for mharc-libtool-commit@gnu.org; Thu, 18 Apr 2024 12:39:25 -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 1rxUnE-00040H-KS
 for libtool-commit@gnu.org; Thu, 18 Apr 2024 12:39:24 -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 1rxUnE-0003PL-CW
 for libtool-commit@gnu.org; Thu, 18 Apr 2024 12:39:24 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 2113CC1FB57; Thu, 18 Apr 2024 12:39:23 -0400 (EDT)
Date: Thu, 18 Apr 2024 12:39:23 -0400
To: libtool-commit@gnu.org
Subject: branch master updated: libtool: Pass the "-no-canonical-prefixes"
 linker flag
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <171345836340.12168.5964642887365755151@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/master
X-Git-Reftype: branch
X-Git-Oldrev: 88fc2b892c61f6ef57decc55abe03ec6734f27ec
X-Git-Newrev: 297b5cf19fe12bbee1322a17ff013a21f57bb93d
X-Git-Rev: 297b5cf19fe12bbee1322a17ff013a21f57bb93d
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: Thu, 18 Apr 2024 16:39:24 -0000

This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new 297b5cf1 libtool: Pass the "-no-canonical-prefixes" linker flag
297b5cf1 is described below

commit 297b5cf19fe12bbee1322a17ff013a21f57bb93d
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Apr 18 19:26:55 2024 +0300

    libtool: Pass the "-no-canonical-prefixes" linker flag
    
    When using the -no-canonical-prefixes flag in libtool, the flag is
    removed from the linking command, causing linking to fail. This adds
    the flag to the list of linker flags to be passed through to the
    linker.
    
    * build-aux/ltmain.in: Pass -no-canonical-prefixes to the linker.
    * Makefile.am: Added in tests/bug_62343.at.
    * tests/bug_62343.at: Contains test case for bug 62343.
---
 Makefile.am         |  1 +
 build-aux/ltmain.in |  3 ++-
 tests/bug_62343.at  | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 904f3d73..8cc621ea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -727,6 +727,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/sysroot.at \
 		  tests/stresstest.at \
 		  tests/cmdline_wrap.at \
+		  tests/bug_62343.at	\
 		  $(NOTHING_ELSE)
 
 EXTRA_DIST     += $(testsuite) $(TESTSUITE_AT) $(package_m4)
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 090a4fe8..8f109427 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5412,6 +5412,7 @@ func_mode_link ()
       # -fno-sanitize*       Clang/GCC memory and address sanitizer
       # -shared-libsan       Link with shared sanitizer runtimes (Clang)
       # -static-libsan       Link with static sanitizer runtimes (Clang)
+      # -no-canonical-prefixes Do not expand any symbolic links
       # -fuse-ld=*           Linker select flags for GCC
       # -rtlib=*             select c runtime lib with clang
       # --unwindlib=*        select unwinder library with clang
@@ -5420,7 +5421,7 @@ func_mode_link ()
       # -Werror, -Werror=*   Report (specified) warnings as errors
       -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=*| \
-      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*| \
+      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
       -stdlib=*|-rtlib=*|--unwindlib=*| \
       -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
diff --git a/tests/bug_62343.at b/tests/bug_62343.at
new file mode 100644
index 00000000..385cc413
--- /dev/null
+++ b/tests/bug_62343.at
@@ -0,0 +1,40 @@
+# bug_62343.at -- bug 62343   -*- Autotest -*-
+
+#   Copyright (C) 2010-2019, 2021-2024 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; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+AT_BANNER([Testing bug 62343:])
+
+AT_SETUP([Use -no-canonical-prefixes flag])
+
+AT_DATA([x.cpp],
+[[
+void f(int *p) { *p = 21; }
+]])
+
+
+AT_CHECK([$LIBTOOL --mode=compile --tag=CXX g++ -c x.cpp], [0], [stdout], [stderr])
+
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX g++ -o libx.la -no-canonical-prefixes -rpath /usr/lib64/ x.lo], [0], [stdout], [stderr])
+
+AT_CHECK([$GREP -- '-no-canonical-prefixes' stdout], [0], [ignore])
+
+AT_CLEANUP


From MAILER-DAEMON Sat Apr 20 06:18:18 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1ry7nW-0004cY-1E
	for mharc-libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18: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 1ry7nV-0004ag-5O
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1ry7nU-0002ja-UW
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:16 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id 8709AC1FB65; Sat, 20 Apr 2024 06:18:16 -0400 (EDT)
To: libtool-commit@gnu.org
Subject: master updated (297b5cf1 -> 7b091831)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <171360829587.16435.16589833462562774196@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 297b5cf19fe12bbee1322a17ff013a21f57bb93d
X-Git-Newrev: 7b0918310776395e1cbafe6a08b8df8f8a8a3e21
Auto-Submitted: auto-generated
Date: Sat, 20 Apr 2024 06:18: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: Sat, 20 Apr 2024 10:18:17 -0000

ildumi pushed a change to branch master.

    from 297b5cf1 libtool: Pass the "-no-canonical-prefixes" linker flag
     new baab0572 libtool: Document warning output options
     new 7b091831 ltmain.in: Use func_warning for all warnings


Summary of changes:
 build-aux/ltmain.in | 116 +++++++++++++++++++++++-----------------------------
 doc/libtool.texi    |   7 ++++
 2 files changed, 59 insertions(+), 64 deletions(-)


From MAILER-DAEMON Sat Apr 20 06:18:18 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1ry7nW-0004cn-Aw
	for mharc-libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18: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 1ry7nV-0004ad-5I
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1ry7nU-0002jc-U6
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:16 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id C84EFC1FB69; Sat, 20 Apr 2024 06:18:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <171360829587.16435.16589833462562774196@vcs2.savannah.gnu.org>
References: <171360829587.16435.16589833462562774196@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: 7b0918310776395e1cbafe6a08b8df8f8a8a3e21
Auto-Submitted: auto-generated
Message-Id: <20240420101816.C84EFC1FB69@vcs2.savannah.gnu.org>
Date: Sat, 20 Apr 2024 06:18:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Apr 2024 10:18:17 -0000

branch: master
commit 7b0918310776395e1cbafe6a08b8df8f8a8a3e21
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Sat Apr 20 13:04:33 2024 +0300

    ltmain.in: Use func_warning for all warnings
    
    Several warning messages have been updated to use func_warning rather
    than echo. This will allow them to be disabled properly.
    
    * build-aux/ltmain.in: Replace echo command with func_warning function.
---
 build-aux/ltmain.in | 116 +++++++++++++++++++++++-----------------------------
 1 file changed, 52 insertions(+), 64 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 8f109427..ff0f8758 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5933,18 +5933,15 @@ func_mode_link ()
 		;;
 	      esac
 	      if $valid_a_lib; then
-		echo
-		$ECHO "*** Warning: Linking the shared library $output against the"
-		$ECHO "*** static library $deplib is not portable!"
+		func_warning "Linking the shared library $output against the static library $deplib is not portable!"
 		deplibs="$deplib $deplibs"
 	      else
-		echo
-		$ECHO "*** Warning: Trying to link with static lib archive $deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because the file extensions .$libext of this argument makes me believe"
-		echo "*** that it is just a static archive that I should not use here."
+		func_warning "Trying to link with static lib archive $deplib."
+		func_warning "I have the capability to make that library automatically link in when"
+		func_warning "you link to this library.  But I can only do this if you have a"
+		func_warning "shared version of the library, which you do not appear to have"
+		func_warning "because the file extensions .$libext of this argument makes me believe"
+		func_warning "that it is just a static archive that I should not use here."
 	      fi
 	      ;;
 	    esac
@@ -6309,11 +6306,11 @@ func_mode_link ()
 	  if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
 	    echo
 	    if test prog = "$linkmode"; then
-	      $ECHO "*** Warning: Linking the executable $output against the loadable module"
+	      func_warning "Linking the executable $output against the loadable module"
 	    else
-	      $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+	      func_warning "Linking the shared library $output against the loadable module"
 	    fi
-	    $ECHO "*** $linklib is not portable!"
+	    func_warning "$linklib is not portable!"
 	  fi
 	  if test lib = "$linkmode" &&
 	     test yes = "$hardcode_into_libs"; then
@@ -6408,11 +6405,10 @@ func_mode_link ()
 		    if /usr/bin/file -L $add 2> /dev/null |
 			 $GREP ": [^:]* bundle" >/dev/null; then
 		      if test "X$dlopenmodule" != "X$lib"; then
-			$ECHO "*** Warning: lib $linklib is a module, not a shared library"
+			func_warning "lib $linklib is a module, not a shared library"
 			if test -z "$old_library"; then
-			  echo
-			  echo "*** And there doesn't seem to be a static archive available"
-			  echo "*** The link will probably fail, sorry"
+			  func_warning "And there doesn't seem to be a static archive available"
+			  func_warning "The link will probably fail, sorry"
 			else
 			  add=$dir/$old_library
 			fi
@@ -6552,21 +6548,19 @@ func_mode_link ()
 
 	    # Just print a warning and add the library to dependency_libs so
 	    # that the program can be linked against the static library.
-	    echo
-	    $ECHO "*** Warning: This system cannot link to static lib archive $lib."
-	    echo "*** I have the capability to make that library automatically link in when"
-	    echo "*** you link to this library.  But I can only do this if you have a"
-	    echo "*** shared version of the library, which you do not appear to have."
+	    func_warning "This system cannot link to static lib archive $lib."
+	    func_warning "I have the capability to make that library automatically link in when"
+	    func_warning "you link to this library.  But I can only do this if you have a"
+	    func_warning "shared version of the library, which you do not appear to have."
 	    if test yes = "$module"; then
-	      echo "*** But as you try to build a module library, libtool will still create "
-	      echo "*** a static module, that should work as long as the dlopening application"
-	      echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+	      func_warning "But as you try to build a module library, libtool will still create "
+	      func_warning "a static module, that should work as long as the dlopening application"
+	      func_warning "is linked with the -dlopen flag to resolve symbols at runtime."
 	      if test -z "$global_symbol_pipe"; then
-		echo
-		echo "*** However, this would only work if libtool was able to extract symbol"
-		echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
-		echo "*** not find such a program.  So, this module is probably useless."
-		echo "*** 'nm' from GNU binutils and a full rebuild may help."
+		func_warning "However, this would only work if libtool was able to extract symbol"
+		func_warning "lists from a program, using 'nm' or equivalent, but libtool could"
+		func_warning "not find such a program.  So, this module is probably useless."
+		func_warning "'nm' from GNU binutils and a full rebuild may help."
 	      fi
 	      if test no = "$build_old_libs"; then
 		build_libtool_libs=module
@@ -6893,9 +6887,7 @@ func_mode_link ()
 	if test pass_all != "$deplibs_check_method"; then
 	  func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
 	else
-	  echo
-	  $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
-	  $ECHO "*** objects $objs is not portable!"
+	  func_warning "Linking the shared library $output against the non-libtool objects $objs is not portable!"
 	  func_append libobjs " $objs"
 	fi
       fi
@@ -7378,17 +7370,16 @@ func_mode_link ()
 	      fi
 	      if test -n "$a_deplib"; then
 		droppeddeps=yes
-		echo
-		$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because I did check the linker path looking for a file starting"
+		func_warning "Linker path does not have real file for library $a_deplib."
+		func_warning "I have the capability to make that library automatically link in when"
+		func_warning "you link to this library.  But I can only do this if you have a"
+		func_warning "shared version of the library, which you do not appear to have"
+		func_warning "because I did check the linker path looking for a file starting"
 		if test -z "$potlib"; then
-		  $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+		  func_warning "with $libname but no candidates were found. (...for file magic test)"
 		else
-		  $ECHO "*** with $libname and none of the candidates passed a file format test"
-		  $ECHO "*** using a file magic. Last file checked: $potlib"
+		  func_warning "with $libname and none of the candidates passed a file format test"
+		  func_warning "using a file magic. Last file checked: $potlib"
 		fi
 	      fi
 	      ;;
@@ -7432,17 +7423,16 @@ func_mode_link ()
 	      fi
 	      if test -n "$a_deplib"; then
 		droppeddeps=yes
-		echo
-		$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because I did check the linker path looking for a file starting"
+		func_warning "Linker path does not have real file for library $a_deplib."
+		func_warning "I have the capability to make that library automatically link in when"
+		func_warning "you link to this library.  But I can only do this if you have a"
+		func_warning "shared version of the library, which you do not appear to have"
+		func_warning "because I did check the linker path looking for a file starting"
 		if test -z "$potlib"; then
-		  $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+		  func_warning "with $libname but no candidates were found. (...for regex pattern test)"
 		else
-		  $ECHO "*** with $libname and none of the candidates passed a file format test"
-		  $ECHO "*** using a regex pattern. Last file checked: $potlib"
+		  func_warning "with $libname and none of the candidates passed a file format test"
+		  func_warning "using a regex pattern. Last file checked: $potlib"
 		fi
 	      fi
 	      ;;
@@ -7466,11 +7456,11 @@ func_mode_link ()
 	  *[!\	\ ]*)
 	    echo
 	    if test none = "$deplibs_check_method"; then
-	      echo "*** Warning: inter-library dependencies are not supported in this platform."
+	      func_warning "Inter-library dependencies are not supported in this platform."
 	    else
-	      echo "*** Warning: inter-library dependencies are not known to be supported."
+	      func_warning "Inter-library dependencies are not known to be supported."
 	    fi
-	    echo "*** All declared inter-library dependencies are being dropped."
+	    func_warning "All declared inter-library dependencies are being dropped."
 	    droppeddeps=yes
 	    ;;
 	  esac
@@ -7491,17 +7481,15 @@ func_mode_link ()
 
 	if test yes = "$droppeddeps"; then
 	  if test yes = "$module"; then
-	    echo
-	    echo "*** Warning: libtool could not satisfy all declared inter-library"
-	    $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
-	    echo "*** a static module, that should work as long as the dlopening"
-	    echo "*** application is linked with the -dlopen flag."
+	    func_warning "libtool could not satisfy all declared inter-library"
+	    func_warning "dependencies of module $libname.  Therefore, libtool will create"
+	    func_warning "a static module, that should work as long as the dlopening"
+	    func_warning "application is linked with the -dlopen flag."
 	    if test -z "$global_symbol_pipe"; then
-	      echo
-	      echo "*** However, this would only work if libtool was able to extract symbol"
-	      echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
-	      echo "*** not find such a program.  So, this module is probably useless."
-	      echo "*** 'nm' from GNU binutils and a full rebuild may help."
+	      func_warning "However, this would only work if libtool was able to extract symbol"
+	      func_warning "lists from a program, using 'nm' or equivalent, but libtool could"
+	      func_warning "not find such a program.  So, this module is probably useless."
+	      func_warning "'nm' from GNU binutils and a full rebuild may help."
 	    fi
 	    if test no = "$build_old_libs"; then
 	      oldlibs=$output_objdir/$libname.$libext


From MAILER-DAEMON Sat Apr 20 06:18:19 2024
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1ry7nX-0004d5-Fb
	for mharc-libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:19 -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 1ry7nV-0004aY-4j
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:17 -0400
Received: from vcs2.savannah.gnu.org ([209.51.188.168])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ileanadumitrescu95@gmail.com>) id 1ry7nU-0002jb-TI
 for libtool-commit@gnu.org; Sat, 20 Apr 2024 06:18:16 -0400
Received: by vcs2.savannah.gnu.org (Postfix, from userid 228928)
 id A33CBC1FB41; Sat, 20 Apr 2024 06:18:16 -0400 (EDT)
To: libtool-commit@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: libtool@gnu.org,
 Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
In-Reply-To: <171360829587.16435.16589833462562774196@vcs2.savannah.gnu.org>
References: <171360829587.16435.16589833462562774196@vcs2.savannah.gnu.org>
X-Git-Repo: libtool
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Rev: baab05726170b00c32db44fb9fad0b08cf3e4782
Auto-Submitted: auto-generated
Message-Id: <20240420101816.A33CBC1FB41@vcs2.savannah.gnu.org>
Date: Sat, 20 Apr 2024 06:18:16 -0400 (EDT)
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
 tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
 <mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Apr 2024 10:18:17 -0000

branch: master
commit baab05726170b00c32db44fb9fad0b08cf3e4782
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Sat Apr 20 12:23:17 2024 +0300

    libtool: Document warning output options
    
    By default, CATEGORY is set to "all" for all of the warning messages to
    be output to standard error. CATEGORY can be set to "none" to disable
    warnings.
    
    * doc/libtool.texi: Document "W" or "--warnings=CATEGORY" option.
---
 doc/libtool.texi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/doc/libtool.texi b/doc/libtool.texi
index aabc495a..f074c4cf 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -1319,6 +1319,13 @@ can be achieved using either option @option{-v} or option
 
 @item --version
 Print libtool version information and exit.
+
+@item -W
+@itemx --warnings=@var{CATEGORY}
+Report the warnings falling in category @var{CATEGORY}. The default
+category is @command{all}. To disable warnings, use the category
+@command{none}.
+
 @end table
 
 The current @command{libtool} implementation is done with a shell script


