summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2018-03-04 13:09:36 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-06 06:43:10 -0800
commitb949ac0f5ece89ef2319e70bc129b89dc2cf10fe (patch)
tree7aaf9445ee06ec1bb485b853357ba7e0974a0f30 /meta/recipes-devtools/go
parent98fb2735cc48e4dae707d0f6895a890a859db9e0 (diff)
downloadpoky-b949ac0f5ece89ef2319e70bc129b89dc2cf10fe.tar.gz
go-runtime: remove unneeded nativesdk override, rename variable
since GO_LDFLAGS is also used by the dist tool, and it's confusing to use a variable with the same name (but not exported, so unused by make.bash/dist). (From OE-Core rev: b5ee166307ea095c77237e06744dff6810800bad) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go')
-rw-r--r--meta/recipes-devtools/go/go-runtime.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc
index a79295df47..0041e8afab 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -17,9 +17,7 @@ export CGO_CXXFLAGS = "${CXXFLAGS}"
17export CGO_LDFLAGS = "${LDFLAGS}" 17export CGO_LDFLAGS = "${LDFLAGS}"
18 18
19GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" 19GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
20GO_LINKMODE ?= "" 20GO_SHLIB_LDFLAGS ?= '-ldflags="--linkmode=external -extldflags '${GO_EXTLDFLAGS}'"'
21GO_LINKMODE_class-nativesdk = "--linkmode=external"
22GO_LDFLAGS ?= '-ldflags="${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
23 21
24do_configure() { 22do_configure() {
25 : 23 :
@@ -38,7 +36,7 @@ do_compile() {
38 if [ -n "${GO_DYNLINK}" ]; then 36 if [ -n "${GO_DYNLINK}" ]; then
39 export GOTOOLDIR="${B}/pkg/tool/native_native" 37 export GOTOOLDIR="${B}/pkg/tool/native_native"
40 CC="$CC_FOR_${TARGET_GOOS}_${TARGET_GOARCH}" GOARCH="${TARGET_GOARCH}" GOOS="${TARGET_GOOS}" GOROOT=${B} \ 38 CC="$CC_FOR_${TARGET_GOOS}_${TARGET_GOARCH}" GOARCH="${TARGET_GOARCH}" GOOS="${TARGET_GOOS}" GOROOT=${B} \
41 $GOTOOLDIR/go_bootstrap install -linkshared -buildmode=shared ${GO_LDFLAGS} std 39 $GOTOOLDIR/go_bootstrap install -linkshared -buildmode=shared ${GO_SHLIB_LDFLAGS} std
42 fi 40 fi
43 cd ${B} 41 cd ${B}
44} 42}