From 5bdabe3e06a763b2135a05f02101451837eff56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Fri, 25 Nov 2022 17:45:45 +0100 Subject: [PATCH] common.mak: Fix pretty print for linking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit ae7217806b3e ("common.mak: remove `LINK` and `LINKXX`") changed the LINK and LINKXX definition to ensure that the same compiler is used for compilation and linking when specified with CC= (or CXX= respectively) on the commandline. However, the commit also removed the pretty print for both commands. Add the pretty print back in and use the already defined $(CC) and $(CXX) variables to preserve the original change. Fixes: ae7217806b3e ("common.mak: remove `LINK` and `LINKXX`") Signed-off-by: Jan Höppner --- common.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.mak b/common.mak index c1d0cf01..17debc97 100644 --- a/common.mak +++ b/common.mak @@ -60,8 +60,10 @@ endef $(eval $(call cmd_define, AS," AS ",$(CROSS_COMPILE)as)) $(eval $(call cmd_define, CC," CC ",$(CROSS_COMPILE)gcc)) +$(eval $(call cmd_define, LINK," LINK ",$(CC))) $(eval $(call cmd_define, HOSTCC," HOSTCC ",gcc)) $(eval $(call cmd_define, CXX," CXX ",$(CROSS_COMPILE)g++)) +$(eval $(call cmd_define, LINKXX," LINKXX ",$(CXX))) $(eval $(call cmd_define, CPP," CPP ",$(CROSS_COMPILE)gcc -E)) $(eval $(call cmd_define, AR," AR ",$(CROSS_COMPILE)ar)) $(eval $(call cmd_define, NM," NM ",$(CROSS_COMPILE)nm)) @@ -81,8 +83,6 @@ CHECKTOOL = $(call echocmd," CHECK ",/$@)$(CHECK_SILENT) SKIP = echo " SKIP $(call reldir) due to" INSTALL = install -LINK = $(CC) -LINKXX = $(CXX) CP = cp ifneq ("${V}","1") MAKEFLAGS += --quiet