From: Jaroslav Kysela Date: Mon, 20 Jun 2016 06:24:57 +0000 (+0200) Subject: configure: add --enable-ccdebug (use -O0 for compiler - clang or gcc) X-Git-Tag: v4.2.1~418 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e508db5a11ef918488a3844e0e979304c8bcfc7;p=thirdparty%2Ftvheadend.git configure: add --enable-ccdebug (use -O0 for compiler - clang or gcc) --- diff --git a/Makefile b/Makefile index 86b529147..d52894c69 100644 --- 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 diff --git a/configure b/configure index a01be5748..17230991f 100755 --- 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"