patch: c/cxxflags for static libraries

Thiago Macieira thiago at kde.org
Tue Jul 18 21:42:44 CEST 2006


Brad King wrote:
>The equivalent in CMake would be to just remove static libraries from
>the list of libraries put on the link line for a shared library.  The
>static libraries should still be listed as dependencies so that when the
>executable links to the shared library it gets the static library too.
>
>Does this sound correct?

No. They should be completely forbidden.

If you do it like that, it'll work for a shared library that is produced 
in the same cmake build. But it'll fail for a 3rd-party (from a different 
cmake build), since the dependency isn't recorded anywhere.

Unless you're proposing to create and install .la files.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    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: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060718/73d1ef3f/attachment.pgp 


More information about the Kde-buildsystem mailing list