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. Signed-off-by: Giulio Benetti <giulio.benetti@xxxxxxxxxxxxxxxxxxxxxx> --- src/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/meson.build b/src/meson.build index 20b1b7b..cd48de7 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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) -- 2.34.1