Static libraries forced to be PIC

Mike Frysinger vapier at gentoo.org
Sun Oct 15 07:06:13 UTC 2006


On Saturday 14 October 2006 07:13, Carmelo Amoroso wrote:
> 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.

uhh, no ... DOPIC is always an option regardless of shared library status

> So, if you want to have both shared libs(PIC) and static not PIC libs is
> not possible

incorrect ... disable DOPIC and you have this behavior
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20061015/23ec6157/attachment-0002.pgp 


More information about the uClibc mailing list