On Tue, 9 May 2017 14:36:09 +1000 Adam Carter wrote: > Shared objects often need -fPIC for proper relocations when > > > linking, just add it when you're told to. It allows COW strategy > > for DLOs but at the cost of extra CPU register and some slowdown. > > > > > Shouldn't this be in the ebuilds? eg. > if gcc:6[pie]; > then CFLAGS=${CFLAGS} -fPIC
I'm not so sure. Whether -fPIC is required or not depends on too many factors and adding it when not needed will bring harm. Are you using hardened? Best regards, Andrew Savchenko
pgp8oPjdoXM85.pgp
Description: PGP signature