From 2c74a31afed1a3552fb22b522039e67a3d40b188 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 3 Jun 2017 12:43:22 +0200 Subject: Added backtrace functions for debugging --- Make.config.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Make.config.template') diff --git a/Make.config.template b/Make.config.template index 8768f3b9..82d55617 100644 --- a/Make.config.template +++ b/Make.config.template @@ -6,7 +6,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Make.config.template 3.4 2015/02/09 09:58:45 kls Exp $ +# $Id: Make.config.template 4.1 2017/06/02 09:29:54 kls Exp $ ### The C compiler and options: @@ -16,6 +16,12 @@ CFLAGS = -g -O3 -Wall CXX = g++ CXXFLAGS = -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses +# Use 'make DEBUG=1 ...' to build a debug version of VDR and plugins: +ifdef DEBUG +CFLAGS += -O0 +CXXFLAGS += -O0 +endif + # Use 'make M32=1 ...' to build a 32-bit version of VDR on a 64-bit machine: ifdef M32 CFLAGS += -m32 -- cgit v1.2.3