]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-mirror: link against the specified alloc library
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Jun 2019 16:17:11 +0000 (12:17 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 6 Jun 2019 16:17:11 +0000 (12:17 -0400)
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 <dillaman@redhat.com>
src/tools/rbd_mirror/CMakeLists.txt

index fb39f9c52215c3a67f7083fd98631f970bafd2d3..6184e418d97bf169aef1069fbbac75cae5572c73 100644 (file)
@@ -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)