diff options
-rw-r--r-- | meta/classes/go.bbclass | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 3 |
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} | |||
50 | GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}" | 50 | GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}" |
51 | export GOTOOLDIR | 51 | export GOTOOLDIR |
52 | 52 | ||
53 | SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" | ||
54 | SECURITY_LDFLAGS = "" | ||
55 | |||
53 | export CGO_ENABLED ?= "1" | 56 | export CGO_ENABLED ?= "1" |
54 | export CGO_CFLAGS ?= "${CFLAGS}" | 57 | export CGO_CFLAGS ?= "${CFLAGS}" |
55 | export CGO_CPPFLAGS ?= "${CPPFLAGS}" | 58 | export 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 = "" | |||
18 | GO_LDFLAGS_class-nativesdk = "-linkmode external" | 18 | GO_LDFLAGS_class-nativesdk = "-linkmode external" |
19 | export GO_LDFLAGS | 19 | export GO_LDFLAGS |
20 | 20 | ||
21 | SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" | ||
22 | SECURITY_LDFLAGS = "" | ||
23 | |||
21 | do_configure[noexec] = "1" | 24 | do_configure[noexec] = "1" |
22 | 25 | ||
23 | do_compile() { | 26 | do_compile() { |