Fix tokudb jemalloc linking
Linking tokudb with jemalloc privately causes problems on library load/unload. To prevent dangling destructor pointers, link with the same library as the server is using.
This commit is contained in:
parent
fd0c114c5d
commit
83d5b963bd
@ -14,12 +14,11 @@ set(tokuportability_srcs
|
||||
)
|
||||
|
||||
add_library(${LIBTOKUPORTABILITY} SHARED ${tokuportability_srcs})
|
||||
target_link_libraries(${LIBTOKUPORTABILITY} LINK_PRIVATE ${LIBJEMALLOC})
|
||||
target_link_libraries(${LIBTOKUPORTABILITY} LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
|
||||
|
||||
add_library(tokuportability_static_conv STATIC ${tokuportability_srcs})
|
||||
set_target_properties(tokuportability_static_conv PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
set(tokuportability_source_libs tokuportability_static_conv ${LIBJEMALLOC} ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
|
||||
set(tokuportability_source_libs tokuportability_static_conv ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
|
||||
toku_merge_static_libs(${LIBTOKUPORTABILITY}_static ${LIBTOKUPORTABILITY}_static "${tokuportability_source_libs}")
|
||||
|
||||
maybe_add_gcov_to_libraries(${LIBTOKUPORTABILITY} tokuportability_static_conv)
|
||||
|
Loading…
x
Reference in New Issue
Block a user