]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: link against the specified alloc library 29193/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Jun 2019 16:17:11 +0000 (12:17 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 22 Jul 2019 23:33:38 +0000 (19:33 -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>
(cherry picked from commit 163c122941c2ef138a525358e70b773df5948751)

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)