]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
configure: add --enable-ccdebug (use -O0 for compiler - clang or gcc)
authorJaroslav Kysela <perex@perex.cz>
Mon, 20 Jun 2016 06:24:57 +0000 (08:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 20 Jun 2016 06:24:57 +0000 (08:24 +0200)
Makefile
configure

index 86b529147f739d0b5f0adca6e4a214040a6e1fa9..d52894c693078129ecc236f2a40b5b98d09ee78b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,12 @@ LANGUAGES ?= bg cs da de en_US en_GB es et fa fi fr he hr hu it lv nl pl pt ru s
 # Common compiler flags
 #
 
-CFLAGS  += -g -O2
+CFLAGS  += -g
+ifeq ($(CONFIG_CCDEBUG),yes)
+CFLAGS  += -O0
+else
+CFLAGS  += -O2
+endif
 ifeq ($(CONFIG_PIE),yes)
 CFLAGS  += -fPIE
 else
index a01be574898b7ded9191ebd9ee04c46ac0d7acbb..17230991f3e2ef0c77eb5f9c126e147273dcbdc7 100755 (executable)
--- a/configure
+++ b/configure
@@ -18,6 +18,7 @@ test -z "$PKG_CONFIG" && PKG_CONFIG=pkg-config
 
 OPTIONS=(
   "pie:yes"
+  "ccdebug:no"
   "cwc:yes"
   "capmt:yes"
   "constcw:yes"