Re: RFC: SDL and X static extension libraries re-revisited
> Change policy so that static libraries that aren't available as shared
> libraries must be compiled with "-fPIC" (and other static libraries
> still mustn't be compiled with "-fPIC").
AIUI there are fairly severe performance penalties when doing this on
register-poor architectures (i386 for example). There are also some
concerns about binary compatibility (though I don't think any exist, but
I'm not sure).
In gcc's case (-2.96, -3.0), there is a libg2c library for g77 support
that used to be only shipped as a non-PIC non-shared archive (libg2c.a).
In newer versions of the gcc packages, there is now also a PIC version
(libg2c-pic.a) that can be used when linking against PIC libraries.
Seems like a reasonable way to get both the performance gains as well as
solving the mixing PIC/non-PIC problems, although the autoconf/*-config
scripts may not know about these -pic libraries...
maybe policy can be amended to allow PIC objects in static libraries
only with a special (fixed) suffix?
just my 2 cents....
randolph
--
Debian Developer <tausq@debian.org>
http://www.TauSq.org/
Reply to: