While we discuss libtool (-fpic vs. -fPIC)
kris at obsecurity.org
Tue Feb 28 13:31:34 PST 2006
On Tue, Feb 28, 2006 at 03:49:14PM -0500, Mikhail Teterin wrote:
> ? ??, 2006-02-28 ? 15:44 -0500, Kris Kennaway ????:
> > The thing is, on i386 it makes no difference, it's only on some
> > archtechtures where it matters. And it has to do with both the size of
> > the symbol table and the size of the code.
> > --
> > Also, Peter Wemm confirmed for me that -fpic and -fPIC are identical
> > on amd64.
> Mmm, this may be right... bsd.lib.mk's taking special care to use -fpic
> is what confused me.
> We should still use -DPIC for consistency, but very few files compile
> differently based on that define.
In fact I'd say none will (except those that might break by having it
defined unexpectedly), because any port that needs to define -DPIC
that in order to conditionally compile PIC code must already be doing
so, or it'd be broken out of the box.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060228/5aa741aa/attachment.bin
More information about the freebsd-ports