Why -prefer-pic?

Laurynas Biveinis lauras@softhome.net
Fri Dec 8 23:20:00 GMT 2000


Alexandre Oliva wrote:
> So that a shared libstdc++ built out of libsupc++ gets PIC code.
> Ditto for any other shared libraries linked with libsupc++ but not
> with libstdc++.  That's the same reason why libgcc is PIC by default.

I see now.

> If DJGPP don't support PIC at all, we have to adjust libtool so that
> it learns about this fact.  

OK, I'll submit a patch for libtool which gets rid of '-fPIC -DPIC' for DJGPP.

Laurynas


More information about the Libstdc++ mailing list