mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-12-14 14:15:22 +01:00
containered|runc: override GOROOT at build time
Similar to commit 01aa8f1, runc and containered also need to set GOROOT
explicitly.
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
e764db31c1
commit
ab373099f5
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user