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:
Khem Raj 2017-03-20 20:59:46 -07:00 committed by Bruce Ashfield
parent 1b83c21436
commit a8e3eddaec
6 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOPATH="${WORKDIR}/git/" export GOPATH="${WORKDIR}/git/"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
# Pass the needed cflags/ldflags so that cgo # Pass the needed cflags/ldflags so that cgo
# can find the needed headers files and libraries # can find the needed headers files and libraries
export CGO_ENABLED="1" export CGO_ENABLED="1"

View File

@ -27,7 +27,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
# Setup vendor directory so that it can be used in GOPATH. # Setup vendor directory so that it can be used in GOPATH.
# #
# Go looks in a src directory under any directory in GOPATH but riddler # Go looks in a src directory under any directory in GOPATH but riddler

View File

@ -15,7 +15,7 @@ inherit go
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
export GOPATH="${S}" export GOPATH="${S}"
# Pass the needed cflags/ldflags so that cgo # Pass the needed cflags/ldflags so that cgo

View File

@ -18,7 +18,7 @@ EXTRA_OEMAKE="BUILDTAGS=''"
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
# Setup vendor directory so that it can be used in GOPATH. # Setup vendor directory so that it can be used in GOPATH.
# #
# Go looks in a src directory under any directory in GOPATH but riddler # Go looks in a src directory under any directory in GOPATH but riddler

View File

@ -23,7 +23,7 @@ inherit go-osarchmap
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
# docker to download its dependencies but rather # docker to download its dependencies but rather
# use dependencies packaged independently. # use dependencies packaged independently.

View File

@ -14,7 +14,7 @@ inherit go
do_compile() { do_compile() {
export GOARCH="${TARGET_GOARCH}" export GOARCH="${TARGET_GOARCH}"
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
# Setup vendor directory so that it can be used in GOPATH. # Setup vendor directory so that it can be used in GOPATH.
# #
# Go looks in a src directory under any directory in GOPATH but netns # Go looks in a src directory under any directory in GOPATH but netns