patch: c/cxxflags for static libraries

Thiago Macieira thiago at kde.org
Tue Jul 18 21:01:47 CEST 2006


Brad King wrote:
>For plain old ADD_LIBRARY, the STATIC option works on all platforms to
>create a static library.  What is not supported is the "convenience"
>part that allows multiple static libraries to be "linked" to form a
>bigger static library, or all the objects in a static archive to be
>copied into a shared library whether they are referenced or not.

Right. CMake shouldn't allow one to add a static library as a dependency 
for anything other than a final executable. I don't know if it does that 
or not, but it shouldn't.

libtool allowed that because the dependency was recorded in the .la file. 
When the final executable was linked, the linking was actually performed.

-- 
  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/b75a7ca2/attachment.pgp 


More information about the Kde-buildsystem mailing list