Re: -DPIC - redundant?

2005-01-27 Thread Kevin F. Quinn
Ralf Wildenhues ([EMAIL PROTECTED]) wrote: > (It'd be great if you could enable your mailer to wrap long text lines.) > > * Kevin F. Quinn wrote on Thu, Jan 27, 2005 at 09:18:57AM CET: > > Thanks people; I understand (now) that libtool supports many targets, > > each wi

Re: -DPIC - redundant?

2005-01-27 Thread Kevin F. Quinn
Thanks people; I understand (now) that libtool supports many targets, each with their own compilers. I guess that means the question becomes, why set -DPIC on targets that use gcc, where that compiler defines __PIC__ if it's generating PIC code (at least since gcc 2.8.1 to my knowledge - I don'

-DPIC - redundant?

2005-01-25 Thread Kevin F. Quinn
Apologies if this is a stupid question, but please could someone explain to me why libtool sets '-DPIC' for shared libraries, while gcc reliably defines '__PIC__' when it generates PIC code? Setting '-DPIC' encourages people to do '#ifdef PIC' when surely '#ifdef __PIC__' would be more reliable