PATCH: V3 configury, again

Alexandre Oliva aoliva@redhat.com
Wed Jan 24 09:05:00 GMT 2001


On Jan 24, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> This is wrong.  We do want libtool to compile libsupc++
Alexandre> with -fPIC, so that the object files can be included in
Alexandre> shared library.

> Apparently not we still *do* use -fPIC.

Indeed.  I had forgotten about -prefer-pic, which does what we want.
My ``local cache'' was still outdated.  I had previously suggested
usign --disable-shared only at library-linking time, and thought you
were introducing it at compile-time too, which wouldn't do what we
wanted.

Now I remember the original plan hadn't worked, which is why we ended
up with -prefer-pic.  So, I guess your patch is right, but I'd feel
better after a bootstrap on Solaris with non-GNU ld, because Sun ld is
pickier about letting non-PIC code into shared libraries.

> There's no resaon that PIC-ness should be tied to archive-ness.
	
The reason is that --disable-shared disables generation of PIC code by
default, unless -prefer-pic is given.  That was what I was missing
from the PICture :-)

Please accept my apologies.  The patch is fine.

Now, on to figure out why it still doesn't work on AIX (or does it?)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Libstdc++ mailing list