summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/go/go-runtime.inc5
-rw-r--r--meta/recipes-devtools/go/go-target.inc3
2 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc
index a074238e47..934d1aaeb9 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -45,6 +45,11 @@ do_install() {
45 done 45 done
46} 46}
47 47
48# Remove test binaries that cannot be relocated
49do_install_append_class-nativesdk() {
50 rm -rf ${D}${libdir}/go/src/runtime/pprof/testdata
51}
52
48# These testdata directories aren't needed for builds and contain binaries 53# These testdata directories aren't needed for builds and contain binaries
49# that can cause errors in sysroot_strip(), so just remove them. 54# that can cause errors in sysroot_strip(), so just remove them.
50sysroot_stage_all_append() { 55sysroot_stage_all_append() {
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc
index 0d80bf0d97..b88d0166e5 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -14,6 +14,9 @@ export CC_FOR_TARGET = "${CC}"
14export CXX_FOR_TARGET = "${CXX}" 14export CXX_FOR_TARGET = "${CXX}"
15export GO_TARGET_INSTALL = "cmd" 15export GO_TARGET_INSTALL = "cmd"
16export GO_FLAGS = "-a" 16export GO_FLAGS = "-a"
17GO_LDFLAGS = ""
18GO_LDFLAGS_class-nativesdk = "-linkmode external"
19export GO_LDFLAGS
17 20
18do_configure[noexec] = "1" 21do_configure[noexec] = "1"
19 22