From ea4ea5fbc3f305fd3ce757573cbdacd23438f31d Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Tue, 8 Jan 2019 13:34:24 +0000 Subject: netns: Use correct go toolchain If we don't explicitly set the GO variable as an argument to make then the native go toolchain is invoked instead of the cross-toolchain we actually want. This can result in a netns binary which is built for the wrong architecture. Signed-off-by: Paul Barker Signed-off-by: Bruce Ashfield --- recipes-networking/netns/netns_git.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'recipes-networking/netns') diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 82a961bf..b6d35948 100644 --- a/recipes-networking/netns/netns_git.bb +++ b/recipes-networking/netns/netns_git.bb @@ -15,6 +15,8 @@ S = "${WORKDIR}/git" inherit goarch inherit go +EXTRA_OEMAKE = "GO='${GO}'" + do_compile() { export GOARCH="${TARGET_GOARCH}" export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" -- cgit v1.2.3-54-g00ecf