diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-target.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 47b4411d54..51f1b79cc3 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc | |||
@@ -1,6 +1,16 @@ | |||
1 | DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native" | 1 | DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native" |
2 | DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" | 2 | DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" |
3 | 3 | ||
4 | DEBUG_PREFIX_MAP = "\ | ||
5 | -fdebug-prefix-map=${STAGING_DIR_HOST}= \ | ||
6 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | ||
7 | " | ||
8 | |||
9 | export CGO_CFLAGS = "${CFLAGS}" | ||
10 | export CGO_CPPFLAGS = "${CPPFLAGS}" | ||
11 | export CGO_CXXFLAGS = "${CXXFLAGS}" | ||
12 | export CGO_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${SECURITY_LDFLAGS}" | ||
13 | |||
4 | export GOCACHE = "${B}/.cache" | 14 | export GOCACHE = "${B}/.cache" |
5 | GO_LDFLAGS = "" | 15 | GO_LDFLAGS = "" |
6 | GO_LDFLAGS:class-nativesdk = "-linkmode external" | 16 | GO_LDFLAGS:class-nativesdk = "-linkmode external" |