package/go: fix cross-compilation settings
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Mon, 16 Oct 2017 17:08:45 +0000 (19:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Oct 2017 19:58:12 +0000 (21:58 +0200)
commit80ea21bc3c2147adf810731b0b242e94a3ad294e
treee7b418b0256268e8539dc71ac933e06ecddcb5c9
parente7e71c0124a998893962e5fcc3500206f3b57a59
package/go: fix cross-compilation settings

This patch fixes a bug with the BR2_TOOLCHAIN_HAS_THREADS variable
handling which causes CGO_ENABLED to be always 0.

Furthermore, it fixes the cross compilation options for the go
compiler: setting CGO_ENABLED should be done only for the target
compiler not the host one.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Christian Stewart <christian@paral.in>
package/go/go.mk