Commit b971313f authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4871] don't use version-script on darwin, it's unsupported


git-svn-id: file:///svn/toku/tokudb@43472 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0a6e7d30
......@@ -32,9 +32,11 @@ target_link_libraries(${LIBTOKUDB}_static lock_tree_static range_tree_static new
## add a version script and set -fvisibility=hidden for the shared library
configure_file(export.map . COPYONLY)
get_target_property(link_flags ${LIBTOKUDB} LINK_FLAGS)
set_target_properties(${LIBTOKUDB} PROPERTIES
if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
set_target_properties(${LIBTOKUDB} PROPERTIES
LINK_FLAGS "${LINK_FLAGS} -Wl,--version-script=export.map")
set_targets_visibility_hidden(${LIBTOKUDB})
set_targets_visibility_hidden(${LIBTOKUDB})
endif ()
## add gcov and define _GNU_SOURCE
maybe_add_gcov_to_libraries(${LIBTOKUDB} ${LIBTOKUDB}_static)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment