From 4522709c06225bbc4dbff4aff8b448c02ab3ed12 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sat, 15 Oct 2022 12:27:59 +0200 Subject: [PATCH] Use C++11 for building the project There are C++11 constructs in Icarus at the moment and the plan is to retain C++11 compatibility until more modern versions are widely available in the default installation of systems. Pass `-std=c++11` to the compile to enforce building with C++11, this will make sure that neither an older nor a newer version is used. E.g. compilers on some platforms still default to an earlier version of C++11. Signed-off-by: Lars-Peter Clausen --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 13585836c..7055f4f32 100644 --- a/configure.ac +++ b/configure.ac @@ -104,7 +104,7 @@ AS_IF( [test "x$with_m32" = xyes], []) CFLAGS="$CTARGETFLAGS $CFLAGS" -CXXFLAGS="$CTARGETFLAGS $CXXFLAGS" +CXXFLAGS="$CTARGETFLAGS $CXXFLAGS -std=c++11" LDFLAGS="$CTARGETFLAGS $LDFLAGS" # Check that we are using either the GNU compilers or the Sun compilers