From: Jason Dillaman Date: Thu, 6 Jun 2019 16:17:11 +0000 (-0400) Subject: rbd-mirror: link against the specified alloc library X-Git-Tag: v14.2.3~101^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dcaf976db04f1bbb8082c52d3d5d26a3ebb8fceb;p=ceph.git rbd-mirror: link against the specified alloc library As a daemon, use the build-time specified alloc library (tcmalloc/jemalloc) when linking the application. Fixes: http://tracker.ceph.com/issues/40110 Signed-off-by: Jason Dillaman (cherry picked from commit 163c122941c2ef138a525358e70b773df5948751) --- diff --git a/src/tools/rbd_mirror/CMakeLists.txt b/src/tools/rbd_mirror/CMakeLists.txt index fb39f9c52215c..6184e418d97bf 100644 --- a/src/tools/rbd_mirror/CMakeLists.txt +++ b/src/tools/rbd_mirror/CMakeLists.txt @@ -64,5 +64,6 @@ target_link_libraries(rbd-mirror cls_rbd_client cls_lock_client cls_journal_client - global) + global + ${ALLOC_LIBS}) install(TARGETS rbd-mirror DESTINATION bin)