[Bug libstdc++/126452] Typo in check for --gc-sections support in acinclude.m4

"dave.anglin at bell dot net via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126452

--- Comment #7 from dave.anglin at bell dot net ---
On 2026-07-29 8:29 a.m., redi at gcc dot gnu.org wrote:
> So then maybe:
> 
> --- a/libstdc++-v3/acinclude.m4
> +++ b/libstdc++-v3/acinclude.m4
> @@ -262,8 +262,8 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
>        rm -f conftest.c
>        touch conftest.c
>        if $CC -c conftest.c; then
> -       if $LD --gc-sections -o conftest conftest.o 2>&1 | \
> -          grep "Warning: gc-sections option ignored" > /dev/null; then
> +       if LC_ALL=C $LD --gc-sections -o conftest conftest.o 2>&1 | \
> +          grep "[Ww]arning: gc-sections option ignored" > /dev/null; then
>           ac_gcsections=no
>         fi
>        fi

I believe I tried this (without LC_ALL=C) and it didn't work; but maybe I
messed up.
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.