Skip to contentSkip to conversation

kbuild: use shorthand operator for compiler

PATCH New [email protected] 1 participant 1 message Feb 15, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: use shorthand operator for compiler

From: Prasanth R <[email protected]>

Despite making the gcc as default let the user fix the HOST values or we need to point the /usr/bin/gcc

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index de1acae..46301a6 100644
@@ -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 \
Signature · 1 line
2.7.4