[Bug libstdc++/126452] Typo in check for --gc-sections support in acinclude.m4
dave.anglin at bell dot net
gcc-bugzilla@gcc.gnu.org
Wed Jul 29 15:57:18 GMT 2026
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.
More information about the Gcc-bugs
mailing list