diff options
author | Matt Madison <matt@madison.systems> | 2017-09-22 17:58:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-26 11:05:00 +0100 |
commit | af1ee398b3dcedaa9b555391a0768d7b9ca419e3 (patch) | |
tree | 6539bdc8e185b4ac47e563ed6e205c855ee02533 /meta/recipes-devtools | |
parent | 988e253f47dd84d6b90efad1c941998bc3e5a117 (diff) | |
download | poky-af1ee398b3dcedaa9b555391a0768d7b9ca419e3.tar.gz |
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 <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |