Reducing library dependancies

trigger at space-based.de trigger at space-based.de
Sun Aug 3 10:20:04 BST 2008


On Fri, 01 Aug 08 21:50, Thiago Macieira wrote:
> John Tapsell wrote:
> >2008/8/1 Thiago Macieira <thiago at kde.org>:
> >> You could just use the linker flag --as-needed.
> >
> >So.... should this be put in for the whole KDE build?  It sounds like a
simple fix to speed up loading time of all kde apps.. what's the catch?
:)

> I don't remember the exact details of why it happened in KDE 3, but it 
did. That's why the flag was not enabled by default (a simple switch to 
configure would enable it).

I think it had something to do with Qt 3, but I don't remember any details.

> Maybe we're cleaner now in KDE 4 and it would work. Try it in your build
 and let us know.

In Debian we compile all the KDE 4 stuff with --as-needed (and
--no-undefined  to make sure there are no undefined symbols). We didn't
encounter any problems so far.
For sure this is more or less a hack, because in an ideal world there are
no unneeded libraries one tries to link against...

Greetings,
Armin





More information about the kde-core-devel mailing list