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-861f7616d084master
parent
cd70a98588
commit
c557889c92
|
@ -103,7 +103,7 @@ AC_MSG_CHECKING([whether to compile in debug mode])
|
||||||
AC_MSG_RESULT([$debug])
|
AC_MSG_RESULT([$debug])
|
||||||
if test "x$debug" = "xyes" ; then
|
if test "x$debug" = "xyes" ; then
|
||||||
# -O0 turns off all optimizations; this is necessary for accurate debugging
|
# -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
|
else
|
||||||
WZ_CFLAGS="${WZ_CFLAGS} -DNDEBUG"
|
WZ_CFLAGS="${WZ_CFLAGS} -DNDEBUG"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -57,7 +57,7 @@ LDFLAGS+=-L$(DEVDIR)/lib
|
||||||
# Setup build environment with config values
|
# Setup build environment with config values
|
||||||
|
|
||||||
ifeq ($(strip $(MODE)),debug)
|
ifeq ($(strip $(MODE)),debug)
|
||||||
CFLAGS+=-O0 -DDEBUG -Wall
|
CFLAGS+=-g -O0 -DDEBUG -Wall
|
||||||
else
|
else
|
||||||
CFLAGS+=-DNDEBUG
|
CFLAGS+=-DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue