View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005833CMakeCMakepublic2007-10-06 10:412007-10-12 09:43
Reportergga 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005833: Executables are created with -rdynamic by default on Linux
DescriptionWhen 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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0009985closedBrad King Linux.cmake should not hard-code -rdynamic 

  Notes
(0009394)
gga (reporter)
2007-10-06 11:23

SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")

seems to address the problem.

 Issue History
Date Modified Username Field Change
2007-10-06 10:41 gga New Issue
2007-10-06 11:23 gga Note Added: 0009394
2007-10-12 09:43 Bill Hoffman Status new => closed
2007-10-12 09:43 Bill Hoffman Resolution open => no change required
2010-01-12 17:11 Brad King Relationship added related to 0009985


Copyright © 2000 - 2018 MantisBT Team