From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: linux-trace-devel@vger.kernel.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Subject: [PATCH] libtraceevent: add libdl dependency to meson
Date: Mon, 8 Jan 2024 00:07:53 +0100 [thread overview]
Message-ID: <20240107230753.461368-1-giulio.benetti@benettiengineering.com> (raw)
Libdl is mandatory since it's used by plugins, so let's add it to meson to
prevent build failure where -ldl is not implicit.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
src/meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/meson.build b/src/meson.build
index 20b1b7b..cd48de7 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -13,10 +13,14 @@ sources= [
'trace-seq.c',
]
+cc = meson.get_compiler('c')
+dl_dep = cc.find_library('dl')
+
libtraceevent = library(
'traceevent',
sources,
version: library_version,
+ dependencies: [dl_dep],
include_directories: [incdir],
install: true)
--
2.34.1
reply other threads:[~2024-01-07 23:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240107230753.461368-1-giulio.benetti@benettiengineering.com \
--to=giulio.benetti@benettiengineering.com \
--cc=linux-trace-devel@vger.kernel.org \
/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 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 read-only IMAP folder(s) and NNTP newsgroup(s).