* [PATCH 1/2] libtracecmd: Add explicit pthread and dl dependency to meson
@ 2023-06-15 17:44 Daniel Wagner
2023-06-15 17:45 ` [PATCH 2/2] trace-cmd: " Daniel Wagner
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Wagner @ 2023-06-15 17:44 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt, Tony Jones, Daniel Wagner
Older version of meson do not add automatically the pthread and dl
dependency. Thus add it explicitly to thebuild.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
lib/meson.build | 3 +++
lib/trace-cmd/meson.build | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/lib/meson.build b/lib/meson.build
index 52f892fd82d5..389281d3806a 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -29,6 +29,9 @@ conf = configuration_data()
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.5.0', required: true)
libtracefs_dep = dependency('libtracefs', version: '>= 1.6.0', required: true)
+threads_dep = dependency('threads', required: true)
+dl_dep = cc.find_library('dl', required : false)
+
zlib_dep = dependency('zlib', required: false)
conf.set('HAVE_ZLIB', zlib_dep.found(), description: 'Is zlib avialable?')
diff --git a/lib/trace-cmd/meson.build b/lib/trace-cmd/meson.build
index 8c00ca8f8ff7..2193e5265b22 100644
--- a/lib/trace-cmd/meson.build
+++ b/lib/trace-cmd/meson.build
@@ -45,6 +45,8 @@ if libtracecmd_standalone_build
dependencies: [
libtraceevent_dep,
libtracefs_dep,
+ threads_dep,
+ dl_dep,
zlib_dep,
libzstd_dep,
audit_dep],
@@ -77,6 +79,8 @@ else
dependencies: [
libtraceevent_dep,
libtracefs_dep,
+ threads_dep,
+ dl_dep,
zlib_dep,
libzstd_dep,
audit_dep],
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] trace-cmd: Add explicit pthread and dl dependency to meson
2023-06-15 17:44 [PATCH 1/2] libtracecmd: Add explicit pthread and dl dependency to meson Daniel Wagner
@ 2023-06-15 17:45 ` Daniel Wagner
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Wagner @ 2023-06-15 17:45 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt, Tony Jones, Daniel Wagner
Older version of meson do not add automatically the pthread and dl
dependency. Thus add it explicitly to the build.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meson.build b/meson.build
index 906ac8168f4f..fbdf016f67a7 100644
--- a/meson.build
+++ b/meson.build
@@ -27,6 +27,9 @@ conf = configuration_data()
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.5.0', required: true)
libtracefs_dep = dependency('libtracefs', version: '>= 1.6.0', required: true)
+threads_dep = dependency('threads', required: true)
+dl_dep = cc.find_library('dl', required : false)
+
zlib_dep = dependency('zlib', required: false)
conf.set('HAVE_ZLIB', zlib_dep.found(), description: 'Is zlib avialable?')
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-15 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-15 17:44 [PATCH 1/2] libtracecmd: Add explicit pthread and dl dependency to meson Daniel Wagner
2023-06-15 17:45 ` [PATCH 2/2] trace-cmd: " Daniel Wagner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).