From: Kefu Chai Date: Thu, 21 Jan 2016 17:37:55 +0000 (+0800) Subject: cmake: let ceph-client-debug link with tcmalloc X-Git-Tag: v10.0.4~180^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7314%2Fhead;p=ceph.git cmake: let ceph-client-debug link with tcmalloc 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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1be14fbc7fee..c873fbdcbf9f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)