diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-23 17:47:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-09 09:24:15 +0100 |
commit | e577be00d7e5679724b6af915b5288192059539f (patch) | |
tree | 0277fe434abd6a93b2f21ef4496a6fa66e2d27d1 /meta | |
parent | 54cae4880cbd027c82f7b524aa31fb79489c8dd5 (diff) | |
download | poky-e577be00d7e5679724b6af915b5288192059539f.tar.gz |
go: Remove -fPIE -pie from SECURITY_PIE_CFLAGS
External compilers will explicitly pass -fPIE -pie flags
unlike internal toolchain which does not use them, so the build
fails with external toolchains because, its passing these
flags to linker when building with -r option and fails to link
| /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/go/1.8.3-r0/recipe-sysroot-native/usr/bin/x86_64-bec-linux/x86_64-bec-linux-ld: -r and -pie may not be used together
(From OE-Core rev: bb89849b5edb05a953586d190826a67ba87c1c5a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/go/go_1.8.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go_1.8.bb b/meta/recipes-devtools/go/go_1.8.bb index 091b1318af..ef8bc14383 100644 --- a/meta/recipes-devtools/go/go_1.8.bb +++ b/meta/recipes-devtools/go/go_1.8.bb | |||
@@ -1,3 +1,4 @@ | |||
1 | require go-${PV}.inc | 1 | require go-${PV}.inc |
2 | require go.inc | 2 | require go.inc |
3 | TUNE_CCARGS_remove = "-march=mips32r2" | 3 | TUNE_CCARGS_remove = "-march=mips32r2" |
4 | SECURITY_PIE_CFLAGS_remove = "-fPIE -pie" | ||