diff mbox series

[5/5] kernel-shark: Always run 'ldconfig' after installing libkshark

Message ID 20211110143747.32833-5-y.karadz@gmail.com (mailing list archive)
State Accepted
Headers show
Series [1/5] kernel-shark: Silence a warning from 'cmake_clean.sh' | expand

Commit Message

Yordan Karadzhov Nov. 10, 2021, 2:37 p.m. UTC
This way we make sure that the run-time bindings of the linker are
properly configured and have the necessary cache to find the library.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 src/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f3c4e0a..babb9c1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -46,6 +46,11 @@  install(FILES "${KS_DIR}/libkshark.pc"
         DESTINATION ${PKG_CONGIG_DIR}
             COMPONENT                 libkshark-devel)
 
+install(CODE "message(\"-- Executing: ldconfig ${_LIBDIR}\")
+              execute_process(COMMAND bash \"-c\" \"ldconfig ${_INSTALL_PREFIX}\"
+                              ECHO_ERROR_VARIABLE)"
+        COMPONENT libkshark-devel)
+
 if (OPENGL_FOUND)
 
     message(STATUS "libkshark-plot")