From c557889c92cdf0842d8024fa8b62233b77070b4e Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Thu, 15 Feb 2007 12:37:59 +0000 Subject: [PATCH] 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 --- configure.ac | 2 +- makerules/configure.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 38de32091..72a297805 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/makerules/configure.mk b/makerules/configure.mk index 3b9f21831..9806e0abb 100644 --- a/makerules/configure.mk +++ b/makerules/configure.mk @@ -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