]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link libkv against libheap_profiler
authorKefu Chai <kchai@redhat.com>
Mon, 3 Jun 2019 08:34:46 +0000 (16:34 +0800)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 16 Sep 2019 13:32:50 +0000 (19:02 +0530)
PriorityCache.cc uses `ceph_heap_*` functions, and libkv contains
`PriorityCache.cc`, so it should link against libheap_profiler.

Fixes: https://tracker.ceph.com/issues/41238
Backport: nautilus
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c63b33b61a80d3f544b3a222fbdaf08bfc814361)

src/kv/CMakeLists.txt

index c75bf332a2987580ee74fe5fc9a6fd06dd7ded73..057eb82601aff56586766cf026434da6e01677a4 100644 (file)
@@ -12,4 +12,6 @@ endif (WITH_LEVELDB)
 add_library(kv STATIC ${kv_srcs}
   $<TARGET_OBJECTS:common_prioritycache_obj>)
 
-target_link_libraries(kv ${LEVELDB_LIBRARIES} RocksDB::RocksDB)
+target_link_libraries(kv ${LEVELDB_LIBRARIES}
+  RocksDB::RocksDB
+  heap_profiler)