From: Milian Wolff Date: Tue, 15 Nov 2016 22:29:54 +0000 (+0100) Subject: Link against libunwind directly, we don't need to link against the backtrace library... X-Git-Tag: submit/tizen/20180620.112952^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78b85ab578bae8470869f1e6c13312bcc9817bab;p=sdk%2Ftools%2Fheaptrack.git Link against libunwind directly, we don't need to link against the backtrace library here. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 71e885e..0b17680 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,10 +97,10 @@ endif() configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) add_library(heaptrack_preload MODULE heaptrack_preload.cpp libheaptrack.cpp) -target_link_libraries(heaptrack_preload LINK_PRIVATE ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} backtrace rt) +target_link_libraries(heaptrack_preload LINK_PRIVATE ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${LIBUNWIND_LIBRARY} rt) set_target_properties(heaptrack_preload PROPERTIES VERSION ${HEAPTRACK_LIB_VERSION} SOVERSION ${HEAPTRACK_LIB_SOVERSION}) add_library(heaptrack_inject MODULE heaptrack_inject.cpp libheaptrack.cpp) -target_link_libraries(heaptrack_inject LINK_PRIVATE ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} backtrace rt) +target_link_libraries(heaptrack_inject LINK_PRIVATE ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${LIBUNWIND_LIBRARY} rt) set_target_properties(heaptrack_inject PROPERTIES VERSION ${HEAPTRACK_LIB_VERSION} SOVERSION ${HEAPTRACK_LIB_SOVERSION}) add_executable(heaptrack_interpret heaptrack_interpret.cpp)