libtracecmd: Add explicit pthread and dl dependency to meson
Subsystems (2)
PATCH 1/2 libtracecmd: Add explicit pthread and dl dependency to meson
Older version of meson do not add automatically the pthread and dl dependency. Thus add it explicitly to thebuild.
Signed-off-by Daniel Wagner <[email protected]>
--- lib/meson.build | 3 +++ lib/trace-cmd/meson.build | 4 ++++ 2 files changed, 7 insertions(+)
lib/meson.build +3 -0
@@ -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?')
lib/trace-cmd/meson.build +4 -0
@@ -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],
Signature · 1 line
2.40.1
PATCH 2/2 trace-cmd: Add explicit pthread and dl dependency to meson
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 <[email protected]>
--- meson.build | 3 +++ 1 file changed, 3 insertions(+)
meson.build +3 -0
@@ -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?')
Signature · 1 line
2.40.1