]> code.ossystems Code Review - openembedded-core.git/commit
go: Remove -fPIE -pie from SECURITY_PIE_CFLAGS
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Jul 2017 00:47:48 +0000 (17:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Aug 2017 08:24:02 +0000 (09:24 +0100)
commitbb89849b5edb05a953586d190826a67ba87c1c5a
tree9a6c2f4a8e340af13df8d173c0365743309cc91a
parent7685bac83504e8de6c02d93e39e40f38e51994bb
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/go/go_1.8.bb