]> code.ossystems Code Review - openembedded-core.git/commit
libproxy: Remove PIE flags from SECURITY_PIE_CFLAGS
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Jul 2017 00:47:45 +0000 (17:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Aug 2017 08:24:02 +0000 (09:24 +0100)
commit8c8c01f8e68026228a3b76528a0039acf682c201
tree4790d981d29737f5b41ef109be81e314339f3312
parent0505075ae8d339ba097aebb82b4d0ae62f87c0a9
libproxy: Remove PIE flags 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 shared library, which is not
correct it should just use -fPIC

Fixes errors e.g.
| /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/libproxy/0.4.14-r0/recipe-sysroot-native/usr/bin/x86_64-bec-linux/x86_64-bec-linux-ld: ../libmodman/libmodman.a(module_manager.cpp.o): relocation R_X86_64_PC32 against symbol `_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St6vectorIPN9libmodman14base_extensionESaISB_EEESt10_Select1stISE_ESt4lessIS5_ESaISE_EE8_M_eraseEPSt13_Rb_tree_nodeISE_E' can not be used when making a shared object; recompile with -fPIC

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/libproxy/libproxy_0.4.14.bb