From 55b0fafa6451116840c5b6d6a77182d12cc62108 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 30 Jul 2011 22:32:21 +0300 Subject: [PATCH] Makefile: honour CC variable given by user If user wants to override the default compiler (for example with clang), the CC variable inherited from the environment should be left as is. Signed-off-by: Timo Kokkonen --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1eab2be..31704d8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS=$(SDL_CONFIG) -Wall -O2 -g LIBS=$(SDL_LIBS) -lm -lrt -CC=gcc +CC ?= gcc SPARSE=sparse CHECKPATCH=/usr/src/linux/scripts/checkpatch.pl -- 2.45.0