<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Remove "-rdynamic" from link options</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=210292215-30102009><FONT face=Arial
color=#0000ff size=2>Ah, nevermind. I found this in Linux.cmake
file:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210292215-30102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210292215-30102009><FONT face=Arial
color=#0000ff size=2>SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210292215-30102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210292215-30102009><FONT face=Arial
color=#0000ff size=2>I fixed it by just doing</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format --><SPAN
class=210292215-30102009><FONT face=Arial color=#0000ff
size=2>SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS)</FONT></SPAN><BR>
<P><FONT size=2>--<BR>Shane Dixon<BR>Linux Engineer<BR>Atmel
Corporation<BR><BR></FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> cmake-bounces@cmake.org
[mailto:cmake-bounces@cmake.org] <B>On Behalf Of </B>Dixon,
Shane<BR><B>Sent:</B> Thursday, October 29, 2009 4:27 PM<BR><B>To:</B>
cmake@cmake.org<BR><B>Subject:</B> [CMake] Remove "-rdynamic" from link
options<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>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:<BR><BR>--
CMAKE_C_LINK_FLAGS.............<BR>--
CMAKE_SHARED_LIBRARY_C_FLAGS...-fPIC<BR><BR>How does one remove "-rdynamic" from
the link flags?<BR><BR>--<BR>Shane</FONT> </P></BODY></HTML>