From 172db8be03a2a60a0acdcc26058f94b7c2974374 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Tue, 21 Jul 2015 07:42:06 +0200 Subject: [PATCH] Remove optimizations in debug mode --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2