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

Kris Kennaway kris at obsecurity.org
Tue Feb 28 11:50:17 PST 2006


On Tue, Feb 28, 2006 at 02:44:54PM -0500, Mikhail Teterin wrote:
> ? ??, 2006-02-28 ? 14:24 -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.

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-gnome/attachments/20060228/8e3b4736/attachment.bin


More information about the freebsd-gnome mailing list