[CMake] Remove "-rdynamic" from link options

Dixon, Shane Shane.Dixon at atmel.com
Thu Oct 29 18:26:44 EDT 2009


I'm using a custom gcc toolchain to cross-compile for a linux device.  It doesn't support "-rdynamic".  I've put in a bug so that when I set the compiler and it does try_compile, it doesn't die on those that don't support "-rdynamic", but in the meantime I need to remove it from the link_flags.  I see plenty of ways to add link flags, but not to remove them.  I don't even see it in the variables:

-- CMAKE_C_LINK_FLAGS.............
-- CMAKE_SHARED_LIBRARY_C_FLAGS...-fPIC

How does one remove "-rdynamic" from the link flags?

--
Shane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091029/4ae9a21f/attachment.htm>


More information about the CMake mailing list