From c3165fcd2ab1f71a7e702a64ea0e1f67d2565968 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sun, 21 Feb 2016 13:40:23 -0800 Subject: [PATCH] [make] explicitly set the C and C++ standards to C11 and C++11 Seems to be supported at least back to gcc 4.8.2, which is I think a reasonable minimum version. --- engine.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine.mk b/engine.mk index 66293ea3..cffbcdd2 100644 --- a/engine.mk +++ b/engine.mk @@ -56,9 +56,9 @@ GLOBAL_INCLUDES := $(BUILDDIR) $(addsuffix /include,$(LKINC)) GLOBAL_OPTFLAGS ?= $(ARCH_OPTFLAGS) GLOBAL_COMPILEFLAGS := -g -finline -include $(CONFIGHEADER) GLOBAL_COMPILEFLAGS += -W -Wall -Wno-multichar -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Werror=return-type -GLOBAL_CFLAGS := --std=gnu99 -Werror-implicit-function-declaration -Wstrict-prototypes -Wwrite-strings +GLOBAL_CFLAGS := --std=gnu11 -Werror-implicit-function-declaration -Wstrict-prototypes -Wwrite-strings #GLOBAL_CFLAGS += -Werror -GLOBAL_CPPFLAGS := -fno-exceptions -fno-rtti -fno-threadsafe-statics +GLOBAL_CPPFLAGS := --std=c++11 -fno-exceptions -fno-rtti -fno-threadsafe-statics #GLOBAL_CPPFLAGS += -Weffc++ GLOBAL_ASMFLAGS := -DASSEMBLY GLOBAL_LDFLAGS :=