]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: fix Windows target binutils secrel detection
authorJonathan Yong <10walls@gmail.com>
Tue, 27 Dec 2022 15:57:50 +0000 (15:57 +0000)
committerJonathan Yong <10walls@gmail.com>
Tue, 27 Dec 2022 16:00:11 +0000 (16:00 +0000)
Newer binutils uses all caps, where it was all lower case
previously. Pushed as obvious.

This should resolve:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

gcc/
* configure.ac: use grep -i for case insensitive test.
* configure: Regenerate.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/configure
gcc/configure.ac

index 921aad607127969da752d95c908feba79dea822b..254f9b6c9430d17187e8615771705f1057c1573a 100755 (executable)
@@ -24838,7 +24838,7 @@ else
     gcc_cv_as_cfi_sections_directive=no
     if test "x$gcc_cv_objdump" != x; then
      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
-       grep secrel > /dev/null; then
+       grep -i secrel > /dev/null; then
       gcc_cv_as_cfi_sections_directive=yes
      fi
     fi
index b91f54ce05bcd363416c34c3a901c94148b68b1b..92a0f15ab7404e996ffc4031cb3497102b36ba1f 100644 (file)
@@ -3335,7 +3335,7 @@ gcc_GAS_CHECK_FEATURE([cfi sections directive],
     gcc_cv_as_cfi_sections_directive=no
     if test "x$gcc_cv_objdump" != x; then
      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
-       grep secrel > /dev/null; then
+       grep -i secrel > /dev/null; then
       gcc_cv_as_cfi_sections_directive=yes
      fi
     fi