Skip to content

Commit

Permalink
macos: sym map is not supported by llvm clang
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Prisyazhnyy <[email protected]>
  • Loading branch information
sitano committed Aug 28, 2024
1 parent 15693ae commit aa6f9ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galera/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ target_compile_options(galera_smm
)

if (GALERA_VERSION_SCRIPT)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# Limit symbols visible from Galera DSO.
# Doing this allows to:
# - make the ABI more clean and concise
Expand All @@ -113,6 +114,7 @@ if (GALERA_VERSION_SCRIPT)
set(GALERA_LINK_OPTIONS
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/galera-sym.map)
endif()
endif()

target_link_libraries(galera_smm galera ${GALERA_LINK_OPTIONS})

Expand Down

0 comments on commit aa6f9ab

Please sign in to comment.