MantisBT - CMake
View Issue Details
0005833CMakeCMakepublic2007-10-06 10:412007-10-12 09:43
gga 
 
normalmajoralways
closedno change required 
 
 
0005833: Executables are created with -rdynamic by default on Linux
When creating executables under Linux, cmake by default links them with -rdynamic.
This flag exposes all the symbols in the executable.
This is highly undesirable for executables as it adds a lot of overhead and exposes the internals of the executable, which is often unwanted in commercial applications.
So far, I seem unable to force cmake to remove this flag.
No tags attached.
related to 0009985closed Brad King Linux.cmake should not hard-code -rdynamic 
Issue History
2007-10-06 10:41ggaNew Issue
2007-10-06 11:23ggaNote Added: 0009394
2007-10-12 09:43Bill HoffmanStatusnew => closed
2007-10-12 09:43Bill HoffmanResolutionopen => no change required
2010-01-12 17:11Brad KingRelationship addedrelated to 0009985

Notes
(0009394)
gga   
2007-10-06 11:23   
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")

seems to address the problem.