From kde-core-devel Thu Nov 18 14:23:07 2004 From: David Faure Date: Thu, 18 Nov 2004 14:23:07 +0000 To: kde-core-devel Subject: Re: --as-needed problem Message-Id: <200411181523.07746.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110078767715203 On Thursday 18 November 2004 15:05, Thiago Macieira wrote: > David Faure wrote: > [from the command-line:] > > -lXtst /mnt/devel/kde/kdecvs/build/kdebase/libkonq/.libs/libkonq.so > > /mnt/devel/kde/kdedir/lib/libkparts.so -L/usr/lib/qt3/lib > > /usr/lib/libkdecore.so /usr/lib/libDCOP.so /usr/lib/libkdefx.so > > Notice that your command-line contains the reference > to /usr/lib/libkdecore.so, instead of -lkdecore Indeed. Some this comes from a .la ..... yay, found it - it was the new kdebase/kdmlib which lacked a $(all_libraries). Apologies to Szombathelyi - this was indeed completely unrelated to -as-needed. (I got the kdeui problem due to -as-needed though... I really think -as-needed should only be enabled by packagers) > In any case, I've learnt from experience that building a new KDE with the > same prefix as one that is already installed is not a good thing. ? I'm building it into another prefix (than /usr). > But mostly I have found that libtool is to blame if the wrong libraries > get picked up. It will sometimes store wrong library names in its .la > files -- as well as absolute pathnames instead of -lsomething. Yep. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).