]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Makefile: add support for gperftools
authorJaroslav Kysela <perex@perex.cz>
Wed, 31 Jan 2018 17:42:09 +0000 (18:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 31 Jan 2018 17:42:09 +0000 (18:42 +0100)
Makefile
configure

index a6629bd30de096dbebc7bbbea99413b55373b509..a9763ea91f883f48744759ada241bc0b68f0e9d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,10 @@ ifeq ($(CONFIG_ANDROID),no)
 LDFLAGS += -lrt
 endif
 endif
+ifeq ($(CONFIG_GPERFTOOLS),yes)
+CFLAGS += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
+LDFLAGS += -lprofiler -ltcmalloc
+endif
 
 ifeq ($(COMPILER), clang)
 CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
index d26ae5bec5af6288e993cab7eee46702262d9b09..f13864a9c7a518942f8cbe8cb35eb662f5d1c3a9 100755 (executable)
--- a/configure
+++ b/configure
@@ -77,6 +77,7 @@ OPTIONS=(
   "bintray_cache:yes"
   "ddci:yes"
   "cclang_threadsan:no"
+  "gperftools:no"
 )
 
 #