While we discuss libtool (-fpic vs. -fPIC)

Kris Kennaway kris at obsecurity.org
Tue Feb 28 12:11:26 PST 2006


On Tue, Feb 28, 2006 at 02:55:56PM -0500, Mikhail Teterin wrote:
> ? ??, 2006-02-28 ? 14:50 -0500, Kris Kennaway ????:
> > > > Not sure what you're requesting precisely, but -fPIC and not -fpic
> > is
> > > > correct on amd64 and ia64.
> > > 
> > > I'm requesting, libtool is changed to use `-fpic' instead of `-fPIC'
> > > on all arches except sparc64. This is more efficient, and is what
> > > bsd.lib.mk does:
> > > 
> > > .if !defined(PICFLAG)
> > > .if ${MACHINE_ARCH} == "sparc64"
> > > PICFLAG=-fPIC
> > > .else
> > > PICFLAG=-fpic
> > > .endif
> > > .endif
> > > 
> > > The performance difference is slight, and is not worth chasing every
> > > shared-library building port. But if we can improve hundreds of
> > > ports at once by correcting libtool, we certainly should.
> > 
> > OK, that's wrong then, as above.
> 
> What is "wrong" and which part of the "above" are you referring to?

Where I said "-fPIC and not -fpic is correct on amd64 and ia64."  On
i386 they are equivalent.  In fact now I'm not sure they're not
equivalent on amd64 and ia64 too (in which case the current situation
is still fine).

Kris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060228/2783e3e7/attachment.bin


More information about the freebsd-ports mailing list