[PATCH]Enforce C++11 as a minimum for building gold [PR30867]

Tom Tromey tom@tromey.com
Wed Jan 10 17:46:20 GMT 2024


>>>>> "Tamar" == Tamar Christina <tamar.christina@arm.com> writes:

Tamar> This commit has unconditionally introduced C++11 types without
Tamar> changing the build system to require a C++ compiler.

Tamar> --- a/gold/aclocal.m4
Tamar> +++ b/gold/aclocal.m4
Tamar> @@ -108,6 +108,1025 @@ AC_DEFUN([AM_AUX_DIR_EXPAND],
Tamar>  am_aux_dir=`cd "$ac_aux_dir" && pwd`
Tamar>  ])
 
Tamar> +# ===========================================================================
Tamar> +#  https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
Tamar> +# ===========================================================================
Tamar> +#
Tamar> +# SYNOPSIS
Tamar> +#

This macro is already in config/ax_cxx_compile_stdcxx.m4 and you can
replace the in-line definition with an m4_include, see the end of
gold/aclocal.m4.

For some reason gdb has its own copy of this macro as well, seems like a
mistake.

Tom


More information about the Binutils mailing list