]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: let ceph-client-debug link with tcmalloc 7314/head
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2016 17:37:55 +0000 (01:37 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2016 17:37:58 +0000 (01:37 +0800)
to fix the link problem of
libcephfs.so.1.0.0: undefined reference to `IsHeapProfilerRunning'
when tcmalloc is used and profiler header is detected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 1be14fbc7fee558d2d707bed4c2b05b5fe541d8d..c873fbdcbf9fb6b8284798d5460c0f67a600a532 100644 (file)
@@ -806,7 +806,7 @@ add_library(compressor STATIC ${compressor_srcs})
 target_link_libraries(compressor common snappy)
 
 add_executable(ceph-client-debug tools/ceph-client-debug.cc)
-target_link_libraries(ceph-client-debug cephfs librados global common)
+target_link_libraries(ceph-client-debug cephfs librados global common ${ALLOC_LIBS})
 install(TARGETS ceph-client-debug DESTINATION bin/debug)
 
 add_executable(ceph-kvstore-tool tools/ceph_kvstore_tool.cc)