amd64/127640: GCC will not build shared libraries with
-fprofile-generate on amd64
kostikbel at gmail.com
Fri Sep 26 17:10:25 UTC 2008
On Fri, Sep 26, 2008 at 08:13:20AM +0100, Dieter wrote:
> > Note that libgcov needs to be recompiled with -fPIC.
> > The R_X86_64_32 issue is systematic on amd64. When you build a shared
> > object, better make sure that all .o are compiled with -fPIC.
> So shouldn't the system come with both static and shared versions
> of all the libraries?
The system does. OP linked system supplied libgcov.a into .so.
Should /usr/lib/libgcov.a be built with -fPIC, is debatable. I think it
is overkill for most other static libs from /usr/lib. Note that there
are reasonable arguments against supplying static system libraries like
libc and libpthread.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20080926/e808a4f0/attachment.pgp
More information about the freebsd-amd64