Archived issue #0033812
Configuration, MacOS - Debug Symbols Stripped From Dynamic Libraries
Description
On Mac OS X, the dynamic libraries produced by building OCCT in debug mode (i.e. BUILD_WITH_DEBUG=ON and CMAKE_BUILD_TYPE=Debug) don't contain debug maps. This is because they are stripped at the link step. The logic on line 171 in file "adm/cmake/occt_defs_flags.cmake" is incorrect. There should be some logic that only strips the dynamic libraries if the build is not in debug mode. I suspect that this bug exists on other platforms too, but I haven't tested them.
Steps to reproduce
Build OCCT with the CMake cache variables BUILD_WITH_DEBUG and CMAKE_BUILD_TYPE set to ON and Debug respectively. Then pick any dynamic library produced by the build and run "dsymutil --dump-debug-map aLib.dylib". No debug map will be printed.
Public activity
1 archived note
Participants are labeled by their role within this record.
Fix: https://dev.opencascade.org/node/87805#comment-26322
Need to check other OS
Need to check other OS