From c5a16d0ed3dbfeb2bf60717cb5aaec717a229591 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 15 Nov 2018 14:35:23 +0100 Subject: [PATCH] Specify a C++ standard to build with (C++11) Without being specified, we have c++98 on gcc4 and c++11 on newer gccs. Eventually c++14 will be the default. Better to stick with a specific standard, thus being predictable, than trying to write the code in a way that builds with all of them. Signed-off-by: falkTX --- wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/wscript b/wscript index 41f4c392..d324b9e0 100644 --- a/wscript +++ b/wscript @@ -217,6 +217,7 @@ def configure(conf): conf.env.append_unique('CXXDEFINES', '_POSIX') conf.env.append_unique('CXXFLAGS', '-Wall') + conf.env.append_unique('CXXFLAGS', '-std=gnu++11') conf.env.append_unique('CFLAGS', '-Wall') if conf.env['IS_MACOSX']: