All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization
@ 2020-07-19 10:29 Alejandro González
  2020-07-19 16:55 ` Yann E. MORIN
  2020-07-22 11:47 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Alejandro González @ 2020-07-19 10:29 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization
  2020-07-19 10:29 [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization Alejandro González
@ 2020-07-19 16:55 ` Yann E. MORIN
  2020-07-22 11:47 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2020-07-19 16:55 UTC (permalink / raw)
  To: buildroot

Alejandro, All,

On 2020-07-19 12:29 +0200, Alejandro Gonz?lez spake thusly:
> 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@gmail.com>

Applied to master, after tweaking the commit log slightly. Thanks!

Regards,
Yann E. MORIN.

> ---
>  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
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization
  2020-07-19 10:29 [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization Alejandro González
  2020-07-19 16:55 ` Yann E. MORIN
@ 2020-07-22 11:47 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-07-22 11:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Alejandro" == Alejandro Gonz?lez <alejandro.gonzalez.correo@gmail.com> writes:

 > 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@gmail.com>

Committed to 2020.02.x and 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-22 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19 10:29 [Buildroot] [PATCH 1/1] package/exim: fix CC and LNCC initialization Alejandro González
2020-07-19 16:55 ` Yann E. MORIN
2020-07-22 11:47 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.