[PATCH] kbuild: use shorthand operator for compiler
From: prasanth . r
Date: Mon Feb 15 2021 - 05:28:07 EST
From: Prasanth R <prasanth.r@xxxxxxxxxxx>
Despite making the gcc as default let the user fix the
HOST values or we need to point the /usr/bin/gcc
Signed-off-by: Prasanth R <prasanth.r@xxxxxxxxxxx>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index de1acae..46301a6 100644
--- a/Makefile
+++ b/Makefile
@@ -410,8 +410,8 @@ ifneq ($(LLVM),)
HOSTCC = clang
HOSTCXX = clang++
else
-HOSTCC = gcc
-HOSTCXX = g++
+HOSTCC ?= gcc
+HOSTCXX ?= g++
endif
export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
--
2.7.4