KDE/kdebase/workspace/libs/oxygen

David Faure faure at kde.org
Wed Mar 3 14:51:43 CET 2010


On Wednesday 03 March 2010, Thiago Macieira wrote:
> Em Quarta-feira 03 Março 2010, às 09:19:45, Oswald Buddenhagen escreveu:
> > On Tue, Mar 02, 2010 at 11:53:12PM +0100, David Faure wrote:
> > > and compile as a shared lib on unix", which is sensible for such
> > > a non-public library: we can't use static on unix (-fPIC problem),
> > 
> > i somehow cannot believe that cmake is too stupid to make a static
> > library of pic objects ...
> 
> It's not stupid if that's intended.
> 
> The idea is that there's some code shared between two plugins. That code is
> built once and packaged into an .a, which is linked into the plugin.
> 
> But it only works if the code was built with -fPIC.

Yes that's what Oswald meant, I believe: that we could use a static lib on all 
platforms, as long as we compile the code with -fPIC. The question is what to 
write exactly in the CMakeLists.txt in order to make that portable.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the Kde-buildsystem mailing list