[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -DPIC - redundant?

From: Bob Friesenhahn
Subject: Re: -DPIC - redundant?
Date: Wed, 26 Jan 2005 08:21:24 -0600 (CST)

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 Friesenhahn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]