On Wed, 26 Jan 2005, Gary V. Vaughan wrote:

Kevin F. Quinn wrote:

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.

Libtool supports plenty more compilers than just gcc.

I recall from discussions a couple of years ago that this define is even used from within some Fortran code.


Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen


_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to