diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-01-04 15:20:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-01-05 13:00:11 +1030 |
commit | 941d02eaae0557c80c9e4130478e584a8b284494 (patch) | |
tree | f1d28d68642d792b0b2ee228c2ee3e5a450a1275 /gold/aclocal.m4 | |
parent | 375beedfd34162b1aeb9b28cacd6f458834716da (diff) | |
download | binutils-941d02eaae0557c80c9e4130478e584a8b284494.zip binutils-941d02eaae0557c80c9e4130478e584a8b284494.tar.gz binutils-941d02eaae0557c80c9e4130478e584a8b284494.tar.bz2 |
Enforce C++11 as a minimum for building gold [PR30867]
The attempt in 5e9091dab885 to correct gold for modern LLVM has broken
gold for older compilers. This commit introduced C++11 types without
changing the build system to require a C++ compiler. More importantly
it depends on the compiler having at least C++11 as the default
language. Older compilers which support C++11 but not as the default
language needlessly break. Fix that.
PR gold/30867
* configure.ac (AX_CXX_COMPILE_STDCXX): Require C++11.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/aclocal.m4')
-rw-r--r-- | gold/aclocal.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/aclocal.m4 b/gold/aclocal.m4 index c2bf21c..d0455aa 100644 --- a/gold/aclocal.m4 +++ b/gold/aclocal.m4 @@ -1196,6 +1196,7 @@ AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([../config/ax_cxx_compile_stdcxx.m4]) m4_include([../config/ax_pthread.m4]) m4_include([../config/depstand.m4]) m4_include([../config/gettext-sister.m4]) |