[Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization

Alejandro González alejandro.gonzalez.correo at gmail.com
Sun Jul 19 10:29:46 UTC 2020


When using ccache to build the exim package, the
HOSTCC value contains characters that are incorrectly
interpreted by exim's Makefile, presumably spaces. This
breaks the build with "unrecognized option" ccache errors.

Fix that by wrapping the HOSTCC variable in double quotes,
as it is done for other variables that follow.

Signed-off-by: Alejandro González <alejandro.gonzalez.correo at gmail.com>
---
 package/exim/exim.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 6643abbf65..19a62f497d 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -123,8 +123,8 @@ endif
 define EXIM_BUILD_CMDS
 	$(TARGET_MAKE_ENV) build=br $(MAKE) -C $(@D) makefile
 	$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/build-br macro_predef \
-		CC=$(HOSTCC) \
-		LNCC=$(HOSTCC) \
+		CC="$(HOSTCC)" \
+		LNCC="$(HOSTCC)" \
 		CFLAGS="-std=c99 $(HOST_CFLAGS)" \
 		LFLAGS="-fPIC $(HOST_LDFLAGS)"
 	$(TARGET_MAKE_ENV) build=br $(MAKE) -C $(@D) $(EXIM_STATIC_FLAGS) \
-- 
2.27.0



More information about the buildroot mailing list