Without -g no debug info at all is placed in the exe...

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1113 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-02-15 12:37:59 +00:00
parent cd70a98588
commit c557889c92
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ AC_MSG_CHECKING([whether to compile in debug mode])
AC_MSG_RESULT([$debug])
if test "x$debug" = "xyes" ; then
# -O0 turns off all optimizations; this is necessary for accurate debugging
WZ_CFLAGS="${WZ_CFLAGS} -O0 -DDEBUG -Wall -Wextra -Wwrite-strings -Wcast-qual -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition"
WZ_CFLAGS="${WZ_CFLAGS} -g -O0 -DDEBUG -Wall -Wextra -Wwrite-strings -Wcast-qual -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition"
else
WZ_CFLAGS="${WZ_CFLAGS} -DNDEBUG"
fi

View File

@ -57,7 +57,7 @@ LDFLAGS+=-L$(DEVDIR)/lib
# Setup build environment with config values
ifeq ($(strip $(MODE)),debug)
CFLAGS+=-O0 -DDEBUG -Wall
CFLAGS+=-g -O0 -DDEBUG -Wall
else
CFLAGS+=-DNDEBUG
endif