[CRIU] [PATCH] build: Alive GCOV option

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 19 07:18:44 PST 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index b0adcdeb268c..c76217991575 100644
--- a/Makefile
+++ b/Makefile
@@ -81,6 +81,12 @@ CFLAGS			+= $(USERCFLAGS)
 
 WARNINGS		:= -Wall
 
+ifeq ($(GCOV),1)
+        LDFLAGS         += -lgcov
+        DEBUG           := 1
+        CFLAGS          += --coverage -fno-exceptions -fno-inline
+endif
+
 ifneq ($(WERROR),0)
         WARNINGS	+= -Werror
 endif
-- 
2.5.0



More information about the CRIU mailing list