diff options
| author | Paul Barker <paul@betafive.co.uk> | 2019-01-08 13:34:24 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2019-01-10 13:10:39 -0500 |
| commit | d56c5abfde02318666dde07e5ada0024b40a34d0 (patch) | |
| tree | 961188ba08a3f08d3415f064e1261e2f13f01710 | |
| parent | cf352d74935ec17964700f5b4f86f9a63b3a2183 (diff) | |
| download | meta-virtualization-d56c5abfde02318666dde07e5ada0024b40a34d0.tar.gz | |
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 <paul@betafive.co.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
| -rw-r--r-- | recipes-networking/netns/netns_git.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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" | |||
| 15 | inherit goarch | 15 | inherit goarch |
| 16 | inherit go | 16 | inherit go |
| 17 | 17 | ||
| 18 | EXTRA_OEMAKE = "GO='${GO}'" | ||
| 19 | |||
| 18 | do_compile() { | 20 | do_compile() { |
| 19 | export GOARCH="${TARGET_GOARCH}" | 21 | export GOARCH="${TARGET_GOARCH}" |
| 20 | export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" | 22 | export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" |
