Static libraries forced to be PIC
Carmelo Amoroso
carmelo73 at gmail.com
Sat Oct 14 11:13:09 UTC 2006
Mike Frysinger wrote:
> On Wednesday 11 October 2006 06:57, Carmelo Amoroso wrote:
>> I'm wondering why if we have support for shared library on
>> (HAVE_SHARED=y) that obviously needs DOPIC=y, we needs to build
>> the static libraries as PIC code too.
>
> you misunderstand the behavior of DOPIC ...
>
> DOPIC=y -> force everything to be built as PIC
> DOPIC=n -> only build shared stuff as PIC
Well, but the only case in which you can choose DOPIC=n,
is by disabling support for shared libraries, so only
static libraries will be built.
So, if you want to have both shared libs(PIC) and static not PIC libs is
not possible: you need to do two different builds. This is my concern.
Carmelo
>
>> Is it just to avoid to rebuild all the code for the static version?
>
> that is a nice advantage
> -mike
More information about the uClibc
mailing list