@@ -17,6 +17,7 @@ project(
library_version = meson.project_version()
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.7.0', required: true)
+threads_dep = dependency('threads', required: true)
cunit_dep = dependency('cunit', required : false)
prefixdir = get_option('prefix')
@@ -30,7 +30,7 @@ foreach ex : examples
executable(
ex.underscorify(),
src,
- dependencies: [libtracefs_dep, libtraceevent_dep],
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
include_directories: [incdir])
endforeach
@@ -39,7 +39,7 @@ src = gen.process(meson.current_source_dir() + '/../Documentation/libtracefs-sql
executable(
'sqlhist',
src,
- dependencies: [libtracefs_dep, libtraceevent_dep],
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: true,
install_dir: bindir)
@@ -36,14 +36,14 @@ libtracefs = library(
'tracefs',
sources, lfiles, pfiles,
version: library_version,
- dependencies: [libtraceevent_dep],
+ dependencies: [libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: true)
libtracefs_static = static_library(
'tracefs_static',
sources, lfiles, pfiles,
- dependencies: [libtraceevent_dep],
+ dependencies: [libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: false)
@@ -11,7 +11,7 @@ e = executable(
'trace-utest',
source,
include_directories: [incdir],
- dependencies: [libtraceevent_dep, cunit_dep],
+ dependencies: [libtraceevent_dep, threads_dep, cunit_dep],
link_with: libtracefs_static)
test('trace-utest', e)
Older version of meson do not add automatically the pthread dependency. Thus add it explicitly to the build. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- meson.build | 1 + samples/meson.build | 4 ++-- src/meson.build | 4 ++-- utest/meson.build | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-)