libtool: correct m4 quoting in sed expression

* m4/libtool.m4: properly escape character set in sed expression

Copyright-paperwork-exempt: Yes
This commit is contained in:
Vincent Lefevre 2021-11-21 19:59:54 -06:00 committed by Alex Ameen
parent da2e352735
commit 0904164dd5

2
m4/libtool.m4 vendored
View 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 ...