Ok, apologies if this is already implemented, just haven't seen it.

When making "Unix Makefiles", then link.txt script have archive files (static 
libraries) listed in the
order they appear in the TARGET_LINK_LIBRARIES directive.

The GCC linker (LD) has the peculiarity that if symbols are defined in library 
A and library B needs them, but
B is given on the LD command line after library A, linking will fail with 
unresolved dependencies.

LD supports the directive --start-group/--end-group to get around this issue, 
see (http://sourceware.org/binutils/docs/ld/Options.html#Options)

Question is then: Can I direct CMake to enclose static libraries on the command 
line of LD with --start-group/--end-group?

TIA
/Rob
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to