defs.mk: Add -gdwarf-2 to CFLAGS, to make gcc add macro information for gdb

Signed-off-by: Jan Lindemann <jan@jannet.de>
This commit is contained in:
Jan Lindemann 2013-02-24 12:01:01 +00:00 committed by Jan Lindemann
commit 0fbc394962

View file

@ -762,13 +762,13 @@ ifeq ($(USE_STACK_CHECK),true)
endif
ifeq ($(USE_COMPILER_DEBUG_OPTS),true)
BUILD_CFLAGS+= -g3 -ggdb
BUILD_CPPFLAGS += -g3 -ggdb
BUILD_LDFLAGS += -g3 -ggdb
BUILD_CFLAGS += -gdwarf-2 -g3 -ggdb
BUILD_CPPFLAGS += -gdwarf-2 -g3 -ggdb
BUILD_LDFLAGS += -gdwarf-2 -g3 -ggdb
endif
ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
BUILD_CFLAGS+= -funroll-loops -O2
BUILD_CFLAGS += -funroll-loops -O2
BUILD_CPPFLAGS += -funroll-loops -O2
else
NO_OPT_FLAGS = \