containered|runc: override GOROOT at build time
A message that is not in the archive (sent off-list or not yet received): [email protected]
merged.
Bruce
Quoted 43 lines · Lans Zhang
Similar to commit 01aa8f1, runc and containered also need to set GOROOT explicitly.
Signed-off-by Lans Zhang <[email protected]>--- recipes-containers/containerd/containerd_git.bb | 1 + recipes-containers/runc/runc_git.bb | 1 + 2 files changed, 2 insertions(+)recipes-containers/containerd/containerd_git.bb +0
-0@@ -44,6 +44,7 @@ do_compile() { mkdir -p .gopath/src/"$(dirname "${CONTAINERD_PKG}")" ln -sf ../../../.. .gopath/src/"${CONTAINERD_PKG}" export GOPATH="${S}/.gopath:${S}/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
+ export GOROOT="${STAGING_DIR_NATIVE}/
${nonarch_libdir}/${HOST_SYS}/go"
cd -# Pass the needed cflags/ldflags so that cgo
recipes-containers/runc/runc_git.bb +0
-0@@ -43,6 +43,7 @@ do_compile() { (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname}) export GOPATH="${S}/.gopath:${S}/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
+ export GOROOT="${STAGING_DIR_NATIVE}/
${nonarch_libdir}/${HOST_SYS}/go"
cd -# Pass the needed cflags/ldflags so that cgo
--
2.7.4
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"