diff options
author | Paul Barker <pbarker@toganlabs.com> | 2017-10-05 13:38:19 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-10-05 10:44:04 -0400 |
commit | fdee07aadc1b5224a540c7e8893144207e1979cb (patch) | |
tree | a7f7b94134bf6392ac54f00854cf7a228b6f5c46 | |
parent | a1085de5319d1ad5a5227c7f1cb44cef2a6bb085 (diff) | |
download | meta-virtualization-fdee07aadc1b5224a540c7e8893144207e1979cb.tar.gz |
runc: Don't override GOARCH or GOROOT
These variables are now set correctly by go.bbclass in oe-core. Changing them to
point at the native sysroot just leads to build errors in some cases, for
example when the target and host have matching GOARCH but not matching c
libraries.
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-containers/runc/runc.inc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 83d5f863..b1f2ba87 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc | |||
@@ -21,8 +21,6 @@ EXTRA_OEMAKE="BUILDTAGS=''" | |||
21 | inherit goarch | 21 | inherit goarch |
22 | 22 | ||
23 | do_compile() { | 23 | do_compile() { |
24 | export GOARCH="${TARGET_GOARCH}" | ||
25 | export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" | ||
26 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on | 24 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on |
27 | # docker to download its dependencies but rather | 25 | # docker to download its dependencies but rather |
28 | # use dependencies packaged independently. | 26 | # use dependencies packaged independently. |
@@ -34,7 +32,6 @@ do_compile() { | |||
34 | 32 | ||
35 | (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname}) | 33 | (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname}) |
36 | export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" | 34 | export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" |
37 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" | ||
38 | 35 | ||
39 | # Fix up symlink for go-cross compiler | 36 | # Fix up symlink for go-cross compiler |
40 | rm -f ${S}/src/import/vendor/src | 37 | rm -f ${S}/src/import/vendor/src |