From: Mattia Basaglia Date: Tue, 21 Jul 2015 05:42:06 +0000 (+0200) Subject: Remove optimizations in debug mode X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=172db8be03a2a60a0acdcc26058f94b7c2974374;p=xonotic%2Fnetradiant.git Remove optimizations in debug mode --- diff --git a/Makefile b/Makefile index 64a93ef9..e4ae3fed 100644 --- a/Makefile +++ b/Makefile @@ -120,8 +120,8 @@ ifeq ($(findstring $(CFLAGS),-g),) CFLAGS_COMMON += -g # only add -g if no -g flag is in $(CFLAGS) endif -ifeq ($(findstring $(CFLAGS),-O),) - CFLAGS_COMMON += -O +ifeq ($(findstring $(CFLAGS),-O0),) + CFLAGS_COMMON += -O0 # only add -O if no -O flag is in $(CFLAGS) endif CPPFLAGS_COMMON += @@ -142,8 +142,8 @@ ifeq ($(findstring $(CFLAGS),-g),) CFLAGS_COMMON += -g # only add -g if no -g flag is in $(CFLAGS) endif -ifeq ($(findstring $(CFLAGS),-O),) - CFLAGS_COMMON += -O +ifeq ($(findstring $(CFLAGS),-O0),) + CFLAGS_COMMON += -O0 # only add -O if no -O flag is in $(CFLAGS) endif CFLAGS_COMMON += -pg