From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: linux-trace-devel@vger.kernel.org
Cc: rostedt@goodmis.org, Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: [PATCH] libtraceevent: allow unsetting LIBTRACEEVENT_STATIC
Date: Thu, 7 Nov 2024 20:28:49 +0000 [thread overview]
Message-ID: <20241107202849.340335-1-sudipm.mukherjee@gmail.com> (raw)
We also use the unit tests as a final test of the built shared library.
With this change, we can do:
LIBTRACEEVENT_STATIC= LIBS=-ltraceevent make test && ./utest/trace-utest
and that will build and execute the unit tests with libtraceevent.so instead
of the static library.
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5f3e372..0afaef0 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ EXTRAVERSION = $(EP_EXTRAVERSION)
OBJ = $@
N =
-LIBTRACEEVENT_STATIC = $(bdir)/libtraceevent.a
+LIBTRACEEVENT_STATIC ?= $(bdir)/libtraceevent.a
LIBTRACEEVENT_SHARED = $(bdir)/libtraceevent.so.$(EVENT_PARSE_VERSION)
EP_HEADERS_DIR = $(src)/include/traceevent
--
2.39.2
reply other threads:[~2024-11-07 20:29 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=20241107202849.340335-1-sudipm.mukherjee@gmail.com \
--to=sudipm.mukherjee@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.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 NNTP newsgroup(s).