Skip to contentSkip to conversation

libtraceevent: add libdl dependency to meson

PATCH New Giulio Benetti 1 participant 1 message Jan 7, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: add libdl dependency to meson

Libdl is mandatory since it's used by plugins, so let's add it to meson to prevent build failure where -ldl is not implicit.

---
 src/meson.build | 4 ++++
 1 file changed, 4 insertions(+)
src/meson.build +4 -0
index 20b1b7b..cd48de7 100644
@@ -13,10 +13,14 @@ sources= [
    'trace-seq.c',
 ]
 
+cc = meson.get_compiler('c')
+dl_dep = cc.find_library('dl')
+
 libtraceevent = library(
     'traceevent',
     sources,
     version: library_version,
+    dependencies: [dl_dep],
     include_directories: [incdir],
     install: true)
 
Signature · 1 line
2.34.1