[CRIU] [PATCH 2/4] makefile: make DEBUG & GMONLDOPT simply expanded variables

Dmitry Safonov dsafonov at virtuozzo.com
Thu Feb 11 08:48:16 PST 2016


As they store just a value, not any recursive expands, lets simplify.

Impact: cleanup

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index da5552e..efdbeb6 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ endif
 
 ifeq ($(GCOV),1)
 	LDFLAGS += -lgcov
-	DEBUG = 1	# disable optimization if we want to measure code coverage
+	DEBUG := 1	# disable optimization if we want to measure code coverage
 %.o $(PROGRAM): override CFLAGS += --coverage -fno-exceptions -fno-inline
 endif
 
@@ -165,7 +165,7 @@ endif
 
 ifeq ($(GMON),1)
 	CFLAGS	+= -pg
-	GMONLDOPT = -pg
+	GMONLDOPT := -pg
 endif
 
 CFLAGS		+= $(WARNINGS) $(DEFINES)
-- 
2.7.1



More information about the CRIU mailing list