mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
recipes-containers: set GOROOT
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
1b83c21436
commit
a8e3eddaec
|
@ -23,7 +23,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
|
|||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
export GOPATH="${WORKDIR}/git/"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
# Pass the needed cflags/ldflags so that cgo
|
||||
# can find the needed headers files and libraries
|
||||
export CGO_ENABLED="1"
|
||||
|
|
|
@ -27,7 +27,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
|
|||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
# Setup vendor directory so that it can be used in GOPATH.
|
||||
#
|
||||
# Go looks in a src directory under any directory in GOPATH but riddler
|
||||
|
|
|
@ -15,7 +15,7 @@ inherit go
|
|||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
export GOPATH="${S}"
|
||||
|
||||
# Pass the needed cflags/ldflags so that cgo
|
||||
|
|
|
@ -18,7 +18,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
|
|||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
# Setup vendor directory so that it can be used in GOPATH.
|
||||
#
|
||||
# Go looks in a src directory under any directory in GOPATH but riddler
|
||||
|
|
|
@ -23,7 +23,7 @@ inherit go-osarchmap
|
|||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
|
||||
# docker to download its dependencies but rather
|
||||
# use dependencies packaged independently.
|
||||
|
|
|
@ -14,7 +14,7 @@ inherit go
|
|||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
# Setup vendor directory so that it can be used in GOPATH.
|
||||
#
|
||||
# Go looks in a src directory under any directory in GOPATH but netns
|
||||
|
|
Loading…
Reference in New Issue
Block a user