How not to install a kde_module_LTLIBRARIES target

David Faure faure at kde.org
Fri May 6 19:15:56 BST 2005


On Friday 06 May 2005 20:07, Jeroen Wijnhout wrote:
> On Friday 06 May 2005 02:44 am, David Faure wrote:
> > On Thursday 05 May 2005 16:09, Jeroen Wijnhout wrote:
> > > Sorry, too quick. It appears that it does _not_ work, the
> > > check_LTLIBRARIES are not recognized as kde_modules and not loaded by
> > > KLibLoader.
> >
> > Indeed, check_LTLIBRARIES creates static libs by default - damn.
> > However I compared the libtool lines between check_ and lib_, and the only
> > difference is "-rpath $KDEDIR/lib". So I added that to the LDFLAGS, and
> 
> $(KDE_RPATH) is already there, so it is just a matter of replacing check_ with 
> lib_.

No, $(KDE_RPATH) is -R, not -rpath. I tried that, it's not enough to force a shared lib being created.

> > magically everything works. Looks hackish, but well... libtool isn't going
> > to change tomorrow.
> 
> But lib_LTLIBRARIES targets are installed (ok the libloader won't find them by 
> default probably, but still they are installed). 

But that's why I'm not using lib_LTLIBRARIES!
What I committed uses check_LTLIBRARIES, so that it's not installed and only compiled
on make check, like we want, but -rpath forces it to be a shared lib.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list