diff --git a/galera/src/CMakeLists.txt b/galera/src/CMakeLists.txt index 56971717e..d6f01482c 100644 --- a/galera/src/CMakeLists.txt +++ b/galera/src/CMakeLists.txt @@ -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 @@ -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})