From 05c4fa61f6f72bf23e38cd30243ce35941223e9e Mon Sep 17 00:00:00 2001 From: hendricks266 <hendricks266@1a8010ca-5511-0410-912e-c29ae57300e0> Date: Sun, 19 Feb 2017 22:16:00 +0000 Subject: [PATCH] Explicitly specify the version of the C++ standard as which we are compiling. git-svn-id: https://svn.eduke32.com/eduke32@6068 1a8010ca-5511-0410-912e-c29ae57300e0 --- Common.mak | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Common.mak b/Common.mak index 837b586c9..7b8bd7f5f 100644 --- a/Common.mak +++ b/Common.mak @@ -281,8 +281,10 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10) OPTIMIZATIONS += $(DEBUGFLAG) endif -CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration -CXXONLYFLAGS= -fno-exceptions -fno-rtti +CSTD:=-std=gnu99 +CONLYFLAGS=$(CSTD) -Wimplicit -Werror-implicit-function-declaration +CXXSTD:=-std=gnu++03 +CXXONLYFLAGS=$(CXXSTD) -fno-exceptions -fno-rtti ASFORMAT=elf$(BITS) ASFLAGS=-s -f $(ASFORMAT) #-g LINKERFLAGS=