diff options
author | Matt Madison <matt@madison.systems> | 2018-03-04 13:09:34 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-06 06:43:10 -0800 |
commit | 8701fe54a801705a99136f3a5d2afb5e47d37a29 (patch) | |
tree | 62a0f3a58f9572898317f1f7616376775c1fe9d9 /meta/recipes-devtools/go/go-target.inc | |
parent | 3ffafcd9cf18051074b3a6298f754f34768e36dc (diff) | |
download | poky-8701fe54a801705a99136f3a5d2afb5e47d37a29.tar.gz |
go: disable PIE CFLAGS for nativesdk and cross-canadian builds
The statically-linked Go code in the toolchain is not compatible
with PIE, so disable its use in the C compiler during the
toolchain build.
(From OE-Core rev: cc7b179917c715b29822200fe91ecd755a5750e6)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-target.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 3bc32f3bec..29a1344675 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc | |||
@@ -14,8 +14,7 @@ GO_LDFLAGS = "" | |||
14 | GO_LDFLAGS_class-nativesdk = "-linkmode external" | 14 | GO_LDFLAGS_class-nativesdk = "-linkmode external" |
15 | export GO_LDFLAGS | 15 | export GO_LDFLAGS |
16 | 16 | ||
17 | SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" | 17 | CC_append_class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}" |
18 | SECURITY_LDFLAGS = "" | ||
19 | 18 | ||
20 | do_configure[noexec] = "1" | 19 | do_configure[noexec] = "1" |
21 | 20 | ||