summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/go.bbclass3
-rw-r--r--meta/recipes-devtools/go/go-target.inc3
2 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index e167c949ec..09b01a84c3 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -50,6 +50,9 @@ GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}
50GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}" 50GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}"
51export GOTOOLDIR 51export GOTOOLDIR
52 52
53SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
54SECURITY_LDFLAGS = ""
55
53export CGO_ENABLED ?= "1" 56export CGO_ENABLED ?= "1"
54export CGO_CFLAGS ?= "${CFLAGS}" 57export CGO_CFLAGS ?= "${CFLAGS}"
55export CGO_CPPFLAGS ?= "${CPPFLAGS}" 58export CGO_CPPFLAGS ?= "${CPPFLAGS}"
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc
index b88d0166e5..6065c3c80d 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -18,6 +18,9 @@ GO_LDFLAGS = ""
18GO_LDFLAGS_class-nativesdk = "-linkmode external" 18GO_LDFLAGS_class-nativesdk = "-linkmode external"
19export GO_LDFLAGS 19export GO_LDFLAGS
20 20
21SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
22SECURITY_LDFLAGS = ""
23
21do_configure[noexec] = "1" 24do_configure[noexec] = "1"
22 25
23do_compile() { 26do_compile() {