From fd0217b411dbed74baad3d5807133a4b8f8838bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sun, 19 Jul 2020 12:29:46 +0200 Subject: [PATCH] package/exim: fix build with ccache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using ccache to build the exim package, the HOSTCC value contains spaces, that are incorrectly interpreted by exim's Makefilei, which uses the first word of ${CC} to test compiler options. 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 [yann.morin.1998@free.fr: slight rewording of commit log] Signed-off-by: Yann E. MORIN (cherry picked from commit a9486e337ac7b32a58c31618a070c1b9f9ca9506) Signed-off-by: Peter Korsgaard --- 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 dc445c6d93..90ec364168 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) \