summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/go.bbclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index c0b117d155..8fb41e5c09 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -21,6 +21,7 @@ GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}"
21 21
22GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" 22GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
23GOROOT = "${STAGING_LIBDIR}/go" 23GOROOT = "${STAGING_LIBDIR}/go"
24export GOROOT
24export GOROOT_FINAL = "${libdir}/go" 25export GOROOT_FINAL = "${libdir}/go"
25 26
26DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime" 27DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime"
@@ -35,12 +36,12 @@ export GO = "${HOST_PREFIX}go"
35GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}" 36GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}"
36GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}" 37GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}"
37export GOTOOLDIR 38export GOTOOLDIR
38export CGO_ENABLED = "1" 39
39export GOROOT 40export CGO_ENABLED ?= "1"
40export CGO_CFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_CFLAGS}" 41export CGO_CFLAGS ?= "${CFLAGS}"
41export CGO_CPPFLAGS = "${TARGET_CPPFLAGS}" 42export CGO_CPPFLAGS ?= "${CPPFLAGS}"
42export CGO_CXXFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_CXXFLAGS}" 43export CGO_CXXFLAGS ?= "${CXXFLAGS}"
43export CGO_LDFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_LDFLAGS}" 44export CGO_LDFLAGS ?= "${LDFLAGS}"
44 45
45GO_INSTALL ?= "${GO_IMPORT}/..." 46GO_INSTALL ?= "${GO_IMPORT}/..."
46GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/" 47GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"