From af1ee398b3dcedaa9b555391a0768d7b9ca419e3 Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Fri, 22 Sep 2017 17:58:21 -0700 Subject: go: disable PIE flags for cgo If the security_flags.inc file is included, gcc will do PIE builds by default. These flags need to be disabled for go packages that use cgo. (From OE-Core rev: 5d84042852380fc88b9be8df0e4eeac612c2a6da) Signed-off-by: Matt Madison Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-devtools/go/go-target.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/go') 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 = "" GO_LDFLAGS_class-nativesdk = "-linkmode external" export GO_LDFLAGS +SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" +SECURITY_LDFLAGS = "" + do_configure[noexec] = "1" do_compile() { -- cgit v1.2.3-54-g00ecf