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

Kris Kennaway kris at obsecurity.org
Tue Feb 28 13:38:56 PST 2006


On Tue, Feb 28, 2006 at 04:35:12PM -0500, Mikhail Teterin wrote:
> ? ??, 2006-02-28 ? 16:31 -0500, Kris Kennaway ????:
> > 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.
> 
> Well being 100% correct is better, than being 99.99% correct.

Yes, but:

> As I said,
> these things aren't worth the trouble of chasing individual ports, but
> making something like libtool DTRT is a good idea.
> 
> This includes both, `-fpic' and `-DPIC' flags.

As I argued, spamming in -DPIC everywhere with libtool is at best a
NOP and at worst may break ports that expect it to be undefined for
whatever reason.

The defaults are 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-gnome/attachments/20060228/e3257af3/attachment.bin


More information about the freebsd-gnome mailing list