From beb8bcbf6e816929f3c891613c58a2eb5d06922b Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Fri, 16 May 2025 12:20:00 -0400 Subject: [PATCH] examples: add explicit pthread dependency to meson Older version of meson do not add automatically the pthread dependency. Thus add it explicitly to thebuild. Signed-off-by: Tokunori Ikegami --- examples/meson.build | 2 +- meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index fe7f6349b..62fbe9ef3 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -43,7 +43,7 @@ executable( executable( 'mi-mctp-csi-test', ['mi-mctp-csi-test.c'], - dependencies: libnvme_mi_dep, + dependencies: [libnvme_mi_dep, threads_dep], include_directories: [incdir, internal_incdir] ) diff --git a/meson.build b/meson.build index 4eeb2c0d2..cea3e56c4 100644 --- a/meson.build +++ b/meson.build @@ -238,6 +238,7 @@ conf.set( description: 'Is network address and service translation available' ) +threads_dep = dependency('threads', required: true) dl_dep = dependency('dl', required: false) conf.set( 'HAVE_LIBC_DLSYM',