[CMake] Remove "-rdynamic" from link options

Dixon, Shane Shane.Dixon at atmel.com
Fri Oct 30 11:23:26 EDT 2009


Ah, nevermind.  I found this in Linux.cmake file:
 
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")  
 
I fixed it by just doing
 
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS)


--
Shane Dixon
Linux Engineer
Atmel Corporation



 

________________________________

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Dixon, Shane
Sent: Thursday, October 29, 2009 4:27 PM
To: cmake at cmake.org
Subject: [CMake] Remove "-rdynamic" from link options



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/20091030/c88aaef8/attachment.htm>


More information about the CMake mailing list