[PATCH] make: allow to change a compiler

Andrey Vagin avagin at openvz.org
Thu Jun 20 18:02:57 EDT 2013


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

diff --git a/Makefile b/Makefile
index 125b5b3..0c911d3 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,10 @@ include Makefile.config
 FIND		:= find
 CSCOPE		:= cscope
 RM		:= rm -f
+
+COMPILER	?= $(CROSS_COMPILE)gcc
+CC		:= $(COMPILER)
 LD		:= $(CROSS_COMPILE)ld
-CC		:= $(CROSS_COMPILE)gcc
 NM		:= $(CROSS_COMPILE)nm
 SH		:= bash
 MAKE		:= make
-- 
1.8.1.4


--32u276st3Jlj2kUU--


More information about the CRIU mailing list