[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -DPIC - redundant?
From: |
Gary V. Vaughan |
Subject: |
Re: -DPIC - redundant? |
Date: |
Wed, 26 Jan 2005 13:10:39 +0000 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041103) |
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.
Cheers,
Gary.
--
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
signature.asc
Description: OpenPGP digital signature