From 8aee2436829df1bc61156880b989d78fd6848a04 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 25 Jan 2022 02:33:19 +0000 Subject: gcc-4.9: Set the c++ standard to c++11 as the build breaks with later standards Closes #4586 --- rtems/config/tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtems/config/tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg b/rtems/config/tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg index b477628..4d300be 100644 --- a/rtems/config/tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg +++ b/rtems/config/tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg @@ -34,6 +34,11 @@ %endif +# +# Newer hosts compilers default to newer C++ versions that will not build 4.9 +# +%define build_cxxflags %{build_cxxflags} -std=c++11 +%define host_cxxflags %{host_cxxflags} -std=c++11 # # The gcc/newlib build instructions. -- cgit v1.2.3