bug#41837: m4 quoting bug in m4/libtool.m4

Vincent Lefevre <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <[email protected]>
Hi,

There's an m4 quoting bug in a sed expression in m4/libtool.m4.

    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in

is transformed to

    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in

in the configure script. Patch attached.

Note: I have not tested the actual result.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
m4-quoting.patch (text/plain, 590 B)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index f2d1f398..4877f31e 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -5066,7 +5066,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
       _LT_TAGVAR(whole_archive_flag_spec, $1)=
     fi
     supports_anon_versioning=no
-    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
+    case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
       *GNU\ gold*) supports_anon_versioning=yes ;;
       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.