KDE/kdebase/workspace/libs/oxygen

Thiago Macieira thiago at kde.org
Wed Mar 3 17:50:19 CET 2010


Em Quarta-feira 03 Março 2010, às 14:51:43, David Faure escreveu:
> 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.

Well, to make it portable everywhere, probably nothing.

On the platforms that matter to us, -fPIC on Unix is probably enough, whereas 
a standard static library is enough for Windows.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20100303/758ad221/attachment.sig 


More information about the Kde-buildsystem mailing list