Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] package/go-bootstrap: Build host tools with host CC
Date: Mon, 4 Jul 2016 11:40:08 +0200	[thread overview]
Message-ID: <c3671ab3-be2e-e2b5-c29e-cf849cc96a5d@gmail.com> (raw)
In-Reply-To: <78eb610ef2c82ae5c2adb5be9309401eeffe8cfb.1463696779.git.geoff@infradead.org>

Hi Geoff,

Le 20/05/2016 ? 00:33, Geoff Levand a ?crit :
> Use the host compiler when building host tools.
> 
> The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
> here.  See https://github.com/golang/go/issues/11685.
> 
> Signed-off-by: Geoff Levand <geoff@infradead.org>

Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain


> ---
>  package/go-bootstrap/go-bootstrap.mk | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/package/go-bootstrap/go-bootstrap.mk b/package/go-bootstrap/go-bootstrap.mk
> index 47f5013..29f2b03 100644
> --- a/package/go-bootstrap/go-bootstrap.mk
> +++ b/package/go-bootstrap/go-bootstrap.mk
> @@ -19,11 +19,14 @@ HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain
>  
>  HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/usr/lib/go-$(GO_BOOTSTRAP_VERSION)
>  
> +# The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
> +# here.  See https://github.com/golang/go/issues/11685.
>  HOST_GO_BOOTSTRAP_MAKE_ENV = \
>  	GOOS=linux \
>  	GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \
>  	GOROOT="$(@D)" \
>  	GOBIN="$(@D)/bin" \
> +	CC=$(HOSTCC_NOCCACHE) \
>  	CGO_ENABLED=0
>  
>  define HOST_GO_BOOTSTRAP_BUILD_CMDS
> 

  reply	other threads:[~2016-07-04  9:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19 22:33 [Buildroot] [PATCH 0/3] go language enhancements Geoff Levand
2016-05-19 22:33 ` [Buildroot] [PATCH 3/3] etcd: new package Geoff Levand
2016-07-04  9:28   ` Romain Naour
2016-05-19 22:33 ` [Buildroot] [PATCH 1/3] package/go-bootstrap: Build host tools with host CC Geoff Levand
2016-07-04  9:40   ` Romain Naour [this message]
2016-07-04 13:08     ` Peter Korsgaard
2016-05-19 22:33 ` [Buildroot] [PATCH 2/3] package/go: Enable MIPS support Geoff Levand
2016-06-01 21:41   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3671ab3-be2e-e2b5-c29e-cf849cc96a5d@gmail.com \
    --to=romain.naour@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox