Static libraries forced to be PIC

Mike Frysinger vapier at gentoo.org
Fri Oct 13 15:48:51 PDT 2006


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

> Is it just to avoid to rebuild all the code for the static version?

that is a nice advantage
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20061013/45bec9c0/attachment.pgp 


More information about the uClibc mailing list