summaryrefslogtreecommitdiff
path: root/Make.config.template
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-03 12:43:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-03 12:43:22 +0200
commit2c74a31afed1a3552fb22b522039e67a3d40b188 (patch)
treeaab959a20ff7bb52ef16095812799160570fe577 /Make.config.template
parentbae02358a3a0f697bb10fe67bfc6ea183e36679b (diff)
downloadvdr-2c74a31afed1a3552fb22b522039e67a3d40b188.tar.gz
vdr-2c74a31afed1a3552fb22b522039e67a3d40b188.tar.bz2
Added backtrace functions for debugging
Diffstat (limited to 'Make.config.template')
-rw-r--r--Make.config.template8
1 files changed, 7 insertions, 1 deletions
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