aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-09-28 13:37:31 +0930
committerArsen Arsenović <arsen@gcc.gnu.org>2023-08-07 22:59:40 +0200
commit1d6c6dc9472c77ade619407e705f4e18a3b31a66 (patch)
tree6ee760ce345231a9edf2ac707c84ac45b442e30b /libcpp
parentead5103cc6f526bcc5a30c8c7185e9dd5de73d55 (diff)
downloadgcc-1d6c6dc9472c77ade619407e705f4e18a3b31a66.zip
gcc-1d6c6dc9472c77ade619407e705f4e18a3b31a66.tar.gz
gcc-1d6c6dc9472c77ade619407e705f4e18a3b31a66.tar.bz2
egrep in binutils
Apparently some distros have a nagging egrep that helpfully tells you egrep is deprecated and to use "grep -E". The nag message causes a ld testsuite failure. What's more the advice isn't that good. The "-E" flag may not be available with older versions of grep. This patch fixes bare invocation of egrep within binutils, replacing it with the autoconf $EGREP or with grep. config/ChangeLog: * lib-ld.m4 (AC_LIB_PROG_LD_GNU): Require AC_PROG_EGREP and invoke $EGREP. (AC_LIB_PROG_LD): Likewise. gcc/ChangeLog: * configure: Regenerate. intl/ChangeLog: * configure: Regenerate. libcpp/ChangeLog: * configure: Regenerate. libgcc/ChangeLog: * configure: Regenerate. libstdc++-v3/ChangeLog: * configure: Regenerate.
Diffstat (limited to 'libcpp')
-rwxr-xr-xlibcpp/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/configure b/libcpp/configure
index 1389dda..ed98f40 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -6811,7 +6811,7 @@ else
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
- if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
@@ -6839,7 +6839,7 @@ if ${acl_cv_prog_gnu_ld+:} false; then :
$as_echo_n "(cached) " >&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
acl_cv_prog_gnu_ld=yes
else
acl_cv_prog_gnu_ld=no