All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Wagner <dwagner@suse.de>
To: linux-trace-devel@vger.kernel.org
Cc: Steven Rostedt <rostedt@goodmis.org>, Tony Jones <tonyj@suse.com>,
	Daniel Wagner <dwagner@suse.de>
Subject: [PATCH] libtracefs: Add explicit pthread dependency to meson
Date: Thu, 15 Jun 2023 19:43:49 +0200	[thread overview]
Message-ID: <20230615174349.8810-1-dwagner@suse.de> (raw)

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(-)

diff --git a/meson.build b/meson.build
index d0f0e2dafc8a..9d42d78ad957 100644
--- a/meson.build
+++ b/meson.build
@@ -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')
diff --git a/samples/meson.build b/samples/meson.build
index 5e8ad270f812..112b12217a04 100644
--- a/samples/meson.build
+++ b/samples/meson.build
@@ -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)
diff --git a/src/meson.build b/src/meson.build
index 56087e2301bf..5b7655453f50 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -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)
 
diff --git a/utest/meson.build b/utest/meson.build
index 91a526fca2bf..c79313c7c1fb 100644
--- a/utest/meson.build
+++ b/utest/meson.build
@@ -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)
-- 
2.40.1


             reply	other threads:[~2023-06-15 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 17:43 Daniel Wagner [this message]
2023-07-05 22:23 ` [PATCH] libtracefs: Add explicit pthread dependency to meson Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230615174349.8810-1-dwagner@suse.de \
    --to=dwagner@suse.de \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tonyj@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.