diff mbox series

[6/6] go: Remove -fPIE -pie from SECURITY_PIE_CFLAGS

Message ID 20170724004748.14778-6-raj.khem@gmail.com
State Accepted
Commit bb89849b5edb05a953586d190826a67ba87c1c5a
Headers show
Series [1/6] ossp-uuid, libffi, libgcrypt: Pass --tag=CC option to libtool | expand

Commit Message

Khem Raj July 24, 2017, 12:47 a.m. UTC
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>

---
 meta/recipes-devtools/go/go_1.8.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.3

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

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 @@ 
 require go-${PV}.inc
 require go.inc
 TUNE_CCARGS_remove = "-march=mips32r2"
+SECURITY_PIE_CFLAGS_remove = "-fPIE -pie"