From e657975394b63e739c44c102f1a31a998edc7196 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Fri, 5 Jun 2015 18:22:44 -0300 Subject: [PATCH] correct flags for debug builds --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index da84e7db85..a095ceb2de 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,11 @@ ifneq ($(V),1) Q := @ endif -OPTIMIZE_FLAG = -O3 -ffast-math ifeq ($(DEBUG), 1) - OPTIMIZE_FLAG = -O0 + OPTIMIZE_FLAG = -O0 -g + LDFLAGS += -g +else + OPTIMIZE_FLAG = -O3 -ffast-math endif CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I.