]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
package/go: fix cross-compilation settings
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Mon, 16 Oct 2017 17:08:45 +0000 (19:08 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 22 Oct 2017 22:35:28 +0000 (00:35 +0200)
commit1a223cda9edb19b49e1a11713d0a8f5065e53f82
treeac1989fdba902fd7a1e8e8f59a16bdb12a41dec4
parente4c4cd88fab0e4f9812b0a0b879ce375d2e1db39
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>
(cherry picked from commit 80ea21bc3c2147adf810731b0b242e94a3ad294e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/go/go.mk