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-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Dixon, Shane Sent: Thursday, October 29, 2009 4:27 PM To: cmake@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
_______________________________________________ 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