[Buildroot] [PATCH v3 4/6] package/go: Add HOST_GO_CGO_ENABLED

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu May 26 19:14:43 UTC 2016


Hello,

On Thu, 26 May 2016 18:21:33 +0000, Geoff Levand wrote:

> +# The go compiler's cgo support uses threads.  If BR2_TOOLCHAIN_HAS_THREADS is
> +# set, build in cgo support for any go programs that may need it.  Note that
> +# any target package needing cgo support must include
> +# 'depends on BR2_TOOLCHAIN_HAS_THREADS' in its config file.
> +ifeq (BR2_TOOLCHAIN_HAS_THREADS,y)
> +	HOST_GO_CGO_ENABLED = 1

Such definitions are normally not indented, so I've fixed this here.

> +else
> +	HOST_GO_CGO_ENABLED = 0

and here.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list