MantisBT - CMake
View Issue Details
0013858CMakeCMakepublic2013-01-18 07:302016-06-10 14:31
szx 
Kitware Robot 
normalfeaturehave not tried
closedmoved 
 
 
0013858: Automatic handling of .sym (exported symbol list) files on Linux
On Windows when you add a .def file, it just works i.e. no need to pass "/DEF:filename.def" (MSVC) or "-Wl,--def=filename.def" (MinGW) flags to the compiler.

I propose a similar behaviour for .sym files (or perhaps different extension) on Linux systems which would add "-Wl,--retain-symbols-file=filename.sym" to the link command line.
No tags attached.
Issue History
2013-01-18 07:30szxNew Issue
2013-01-18 09:23Brad KingNote Added: 0032121
2013-01-18 09:23Brad KingStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042203
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032121)
Brad King   
2013-01-18 09:23   
Interesting idea. Implementation will require at least the following:

(1) Choose an extension and/or define a source file property to mark a file for this purpose. Can you provide examples of this being used in practice? Are there any conventions for the extension?

(2) Determine how to know when the linker is aware of this flag. Is it specific to Linux, to GNU binutils, etc.? When was it added? How do we detect its availability?

(3) Find the .def ("module definition") file handling code in existing CMake generators and add similar code for this one, possibly generalizing the original implementation to handle both.
(0042203)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.