[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1613384736-31129-1-git-send-email-prasanth.r@timesys.com>
Date: Mon, 15 Feb 2021 15:55:36 +0530
From: prasanth.r@...esys.com
To: michal.lkml@...kovi.net, masahiroy@...nel.org
Cc: linux-kernel@...r.kernel.org, Prasanth R <prasanth.r@...esys.com>
Subject: [PATCH] kbuild: use shorthand operator for compiler
From: Prasanth R <prasanth.r@...esys.com>
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@...esys.com>
---
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
Powered by blists - more mailing lists