This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Why -prefer-pic?
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