[rtems-source-builder commit] gcc-4.9: Set the c++ standard to c++11 as the build breaks with later standards

Chris Johns chrisj at rtems.org
Tue Jan 25 05:58:35 UTC 2022


Module:    rtems-source-builder
Branch:    4.11
Commit:    8aee2436829df1bc61156880b989d78fd6848a04
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=8aee2436829df1bc61156880b989d78fd6848a04

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jan 25 02:33:19 2022 +0000

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.



More information about the vc mailing list