Fix bug #47 - Enable -ggdb instead of -g for DEBUG builds.

RELEASE builds are built with -O3 instead of -Os.
This commit is contained in:
Jan Vidar Krey 2009-07-09 17:01:45 +02:00
parent 3db2ec5e22
commit 3fdbccb028
1 changed files with 2 additions and 2 deletions

View File

@ -65,10 +65,10 @@ CFLAGS += -I/source/libevent
LDFLAGS += -L/source/libevent LDFLAGS += -L/source/libevent
ifeq ($(RELEASE),YES) ifeq ($(RELEASE),YES)
CFLAGS += -Os -DNDEBUG CFLAGS += -O3 -DNDEBUG
GIT_REVISION ?= NO GIT_REVISION ?= NO
else else
CFLAGS += -g -DDEBUG CFLAGS += -ggdb -DDEBUG
GIT_REVISION ?= YES GIT_REVISION ?= YES
endif endif