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

Re: gcc and -fPIC



On Wed, Mar 20, 2002 at 11:11:10PM +0000, Will Newton wrote:
> On Wednesday 20 Mar 2002 11:00 pm, Michel LESPINASSE wrote:
> > I'd like to add that some architectures (including x86) do not actualy
> > require that you use -fPIC for shared libraries. If you choose to do
> > that, the benefits are that you dont pay the overhead of -fPIC code,
> > the drawbacks however are that 1) the resulting shared lib violates
> > debian policy, 2) programs which use the shared lib will need to do
> So are you saying I should use -fPIC on all architectures?

For debian shared libraries, yes.
For programs and static libraries, you should avoid using -fPIC.

-- 
Michel "Walken" LESPINASSE
Is this the best that god can do ? Then I'm not impressed.



Reply to: