From c0b8c3cb43cd5cb834950f1377a304184945be7e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 20 Nov 2012 21:15:03 +0000 Subject: Linux Makefile: Added the gcc option to output debugging information even in release builds. It will not slow the builds down, only make them larger; allows to have more details in gdb output of a crashdump analysis git-svn-id: http://mc-server.googlecode.com/svn/trunk@1058 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- GNUmakefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 335b5a6fd..43e0332ce 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -39,8 +39,8 @@ ifeq ($(release),1) ################ # release build - fastest run-time, no gdb support ################ -CC_OPTIONS = -s -O3 -DNDEBUG -CXX_OPTIONS = -s -O3 -DNDEBUG +CC_OPTIONS = -s -g -O3 -DNDEBUG +CXX_OPTIONS = -s -g -O3 -DNDEBUG LNK_OPTIONS = -lstdc++ -pthread -O3 BUILDDIR = build/release/ @@ -49,8 +49,8 @@ ifeq ($(profile),1) ################ # profile build - a release build with symbols and profiling engine built in ################ -CC_OPTIONS = -s -ggdb -O3 -pg -DNDEBUG -CXX_OPTIONS = -s -ggdb -O3 -pg -DNDEBUG +CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG +CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG LNK_OPTIONS = -lstdc++ -pthread -ggdb -O3 -pg BUILDDIR = build/profile/ @@ -59,8 +59,8 @@ ifeq ($(pedantic),1) ################ # pedantic build - basically a debug build with lots of warnings ################ -CC_OPTIONS = -s -ggdb -D_DEBUG -Wall -Wextra -pedantic -ansi -Wno-long-long -CXX_OPTIONS = -s -ggdb -D_DEBUG -Wall -Wextra -pedantic -ansi -Wno-long-long +CC_OPTIONS = -s -g -ggdb -D_DEBUG -Wall -Wextra -pedantic -ansi -Wno-long-long +CXX_OPTIONS = -s -g -ggdb -D_DEBUG -Wall -Wextra -pedantic -ansi -Wno-long-long LNK_OPTIONS = -lstdc++ -pthread -ggdb BUILDDIR = build/pedantic/ -- cgit v1.2.3