[CMake] more linking problems
Brad King
brad.king at kitware.com
Tue Apr 26 08:59:44 EDT 2005
Alexander Neundorf wrote:
> Ok, I tried (manually), and it didn't make a difference.
> But it seems I foundwhat libtool does. There these static libs are called
> "convinience libraries". According to Thiago Macieira
> ( http://lists.kde.org/?l=kde-core-devel&m=111436657302510&w=2 )
> this seems to be the right command:
[snip]
> c++ ... <a lot of stuff> -Wl,--whole-archive <list of "convinience"
> libraries> -Wl,--no-whole-archive <more stuff>
This looks like a very GNU-specific link flag, and is therefore not an
option for CMake.
> I think currently this is not possible with cmake.
> For this to work cmake would have to be able to differentiate between
> "normal" static libraries and libtool-like convinience libraries, i.e.
> static libs which should be included completely.
Last week we came up with a possible way to achieve this and I added a
feature request:
http://www.cmake.org/Bug/bug.php?op=show&bugid=1790
Basically we would be able to get the list of object files associated
with a given library and then link them into another library using the
current external object feature.
-Brad
More information about the CMake
mailing list