[CRIU] [PATCH 01/13] make: allow to change a compiler

Andrey Vagin avagin at openvz.org
Wed Apr 3 13:31:00 EDT 2013


clang-analyzer sets the environment variable CC
scan-build -plist-html --use-analyzer /usr/bin/clang make

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c2b2d7b..0d33cc3 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ CSCOPE		:= cscope
 TAGS		:= ctags
 RM		:= rm -f
 LD		:= ld
-CC		:= gcc
+CC		?= gcc
 ECHO		:= echo
 NM		:= nm
 AWK		:= awk
-- 
1.7.11.7



More information about the CRIU mailing list