]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: correct m4 quoting in sed expression
authorVincent Lefevre <vincent@vinc17.net>
Mon, 22 Nov 2021 01:59:54 +0000 (19:59 -0600)
committerAlex Ameen <alex.ameen.tx@gmail.com>
Mon, 22 Nov 2021 01:59:54 +0000 (19:59 -0600)
* m4/libtool.m4: properly escape character set in sed expression

Copyright-paperwork-exempt: Yes

m4/libtool.m4

index 9899ec1f6295d3b563af2d3cc90845eb49fe6962..873ebb8bb8d2dd60310e9af88a375cbc86f1695e 100644 (file)
@@ -5068,7 +5068,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 ...