diff options
author | Brecht Van Lommel <brecht> | 2022-07-29 18:31:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-07-29 18:54:32 +0300 |
commit | cfd16c04f8316270b67c73775a5885d6bc4dc4e2 (patch) | |
tree | f58df47ddd3a94cf064db15a41656d21c044811b /source/creator/CMakeLists.txt | |
parent | 1665e40e16fdf8cc914d6eea3577834ce9597ca4 (diff) |
Build: hide all symbols except a few required ones on Linux
Instead of specifying which symbols to hide, we hide all and make a few
visible. Some users may be relying on calling internal Blender functions,
but Windows is already hiding all of them and this is just not supported.
Fixes T99900: crash with some third-party Python libraries since OneAPI
Ref T76442
Differential Revision: https://developer.blender.org/D14971
Diffstat (limited to 'source/creator/CMakeLists.txt')
-rw-r--r-- | source/creator/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 278cd4362c3..11f48a72908 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -1216,10 +1216,8 @@ unset(LIB) setup_platform_linker_flags(blender) setup_platform_linker_libs(blender) -if(APPLE) - set_target_properties(blender PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/osx_locals.map) -elseif(UNIX) - set_target_properties(blender PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/blender.map) +if(DEFINED PLATFORM_SYMBOLS_MAP) + set_target_properties(blender PROPERTIES LINK_DEPENDS ${PLATFORM_SYMBOLS_MAP}) endif() # ----------------------------------------------------------------------------- |