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.

Reply via email to