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 <[email protected]> --- recipes-networking/netns/netns_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 82a961b..b6d3594 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" -- 2.17.1 -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
