What next?

Arjan van de Ven arjanv at redhat.com
Wed Jun 1 20:21:09 UTC 2005


On Wed, Jun 01, 2005 at 04:15:36PM -0400, Elliot Lee wrote:
> On Wed, 1 Jun 2005, Nicholas Miell wrote:
> 
> > On Wed, 2005-06-01 at 21:44 +0200, Arjan van de Ven wrote:
> > > * avoid redundant libaries in apps
> > >   (for example most gnome apps right now have 2 XML libraries loaded and
> > > in use)
> > 
> > Lots of GNOME apps/libraries (and probably many other things as well)
> > link to libraries that they don't actually use (try "ldd -r -
> > u /usr/bin/*" some time). It'd be nice to get rid of those.
> 
> Those links are there because libtool and pkg-config are stupid. libtool
> and pkg-config aren't going to stop being stupid anytime soon, so we live
> with the situation as-is :)

this is not correct.

pkg-config is fixable!
We need to teach it about -Wl,as-needed which causes the linker only to add
a lib when the app directly uses it.

libtool.. bigger question. But we can get pkg-config to do this right if we
spend 2 days on it.




More information about the devel mailing list