[3/5] kernel-shark: Use the shared versions of the trace-cmd libraries.
diff mbox series

Message ID 20190523151812.31391-4-ykaradzhov@vmware.com
State Superseded
Headers show
Series
  • Nodifications needed by the NumPy interface
Related show

Commit Message

Yordan Karadzhov May 23, 2019, 3:18 p.m. UTC
You may need to clean Cmake's cache after aplaying this patch:

cd kernel-shark/build
./cmake_clean.sh
cmake ..

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark/build/FindTraceCmd.cmake | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch
diff mbox series

diff --git a/kernel-shark/build/FindTraceCmd.cmake b/kernel-shark/build/FindTraceCmd.cmake
index 21315e7..7ebf8da 100644
--- a/kernel-shark/build/FindTraceCmd.cmake
+++ b/kernel-shark/build/FindTraceCmd.cmake
@@ -24,12 +24,12 @@  find_path(TRACECMD_INCLUDE_DIR  NAMES  trace-cmd/trace-cmd.h
                                        ${CMAKE_SOURCE_DIR}/../include/
                                 NO_DEFAULT_PATH)
 
-find_path(TRACECMD_LIBRARY_DIR  NAMES  trace-cmd/libtracecmd.a
+find_path(TRACECMD_LIBRARY_DIR  NAMES  trace-cmd/libtracecmd.so
                                 PATHS  $ENV{TRACE_CMD}/lib/
                                        ${CMAKE_SOURCE_DIR}/../lib/
                                 NO_DEFAULT_PATH)
 
-find_path(TRACEEVENT_LIBRARY_DIR  NAMES  traceevent/libtraceevent.a
+find_path(TRACEEVENT_LIBRARY_DIR  NAMES  traceevent/libtraceevent.so
                                   PATHS  $ENV{TRACE_CMD}/lib/
                                          ${CMAKE_SOURCE_DIR}/../lib/
                                   NO_DEFAULT_PATH)
@@ -38,13 +38,13 @@  find_path(TRACEEVENT_LIBRARY_DIR  NAMES  traceevent/libtraceevent.a
 # search was successful "find_path" will do nothing this time.
 find_path(TRACECMD_BIN_DIR      NAMES  trace-cmd)
 find_path(TRACECMD_INCLUDE_DIR  NAMES  trace-cmd/trace-cmd.h)
-find_library(TRACECMD_LIBRARY_DIR  NAMES  trace-cmd/libtracecmd.a)
-find_library(TRACEEVENT_LIBRARY_DIR  NAMES  traceevent/libtraceevent.a)
+find_library(TRACECMD_LIBRARY_DIR  NAMES  trace-cmd/libtracecmd.so)
+find_library(TRACEEVENT_LIBRARY_DIR  NAMES  traceevent/libtraceevent.so)
 
 IF (TRACECMD_INCLUDE_DIR AND TRACECMD_LIBRARY_DIR)
 
   SET(TRACECMD_FOUND TRUE)
-  SET(TRACECMD_LIBRARY "${TRACECMD_LIBRARY_DIR}/trace-cmd/libtracecmd.a")
+  SET(TRACECMD_LIBRARY "${TRACECMD_LIBRARY_DIR}/trace-cmd/libtracecmd.so")
 
 ENDIF (TRACECMD_INCLUDE_DIR AND TRACECMD_LIBRARY_DIR)
 
@@ -61,7 +61,7 @@  ENDIF (TRACECMD_FOUND)
 IF (TRACEEVENT_LIBRARY_DIR)
 
   SET(TRACEEVENT_FOUND TRUE)
-  SET(TRACEEVENT_LIBRARY "${TRACEEVENT_LIBRARY_DIR}/traceevent/libtraceevent.a")
+  SET(TRACEEVENT_LIBRARY "${TRACEEVENT_LIBRARY_DIR}/traceevent/libtraceevent.so")
 
 ENDIF (TRACEEVENT_LIBRARY_DIR)