From 674fe18deddc475615dd2051d3b28c78417b3227 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 22 Jan 2016 01:37:55 +0800 Subject: [PATCH] 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 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1be14fbc7fe..c873fbdcbf9 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) -- 2.39.5