Subject: Re: PIC code in XFree
To: Martin Husemann <martin@duskware.de>
From: Frank van der Linden <fvdl@netbsd.org>
List: tech-x11
Date: 05/10/2005 12:23:54
On Tue, May 10, 2005 at 12:15:03PM +0200, Martin Husemann wrote:
>  - it creates a ${file}.o with -fPIC option
>  - it creates a unshared/${file}.o without any PIC options
>  - it creates a module/${file}.o without any PIC options
> 
> IMHO it should add -DPIC in the first step and use both pic options for
> modules too - or am I missing something?

Adding -DPIC to the first one is probably a good idea, but then again,
that define is really only used in the asm parts of our libraries.

For 'unshared' it means to build normal static .a libraries, so no PIC
there.

For modules, it uses its own loader, so no PIC options used there either.

- Frank