Linux Trace Development
 help / color / mirror / Atom feed
* [PATCH 1/2] libtracefs: Use LIBTRACEFS_STATIC for utest
@ 2026-06-05 14:53 Benjamin Drung
  2026-06-05 14:53 ` [PATCH 2/2] libtracefs: Support EXTRA_LIBS " Benjamin Drung
  2026-08-26 20:37 ` [PATCH 1/2] libtracefs: Use LIBTRACEFS_STATIC " Steven Rostedt
  0 siblings, 2 replies; 8+ messages in thread
From: Benjamin Drung @ 2026-06-05 14:53 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Benjamin Drung

The top-level Makefile already sets `LIBTRACEFS_STATIC`. To allow
overriding the static libtracefs library using just this variable, use
`LIBTRACEFS_STATIC` in the utest Makefile as well.
---
 utest/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/utest/Makefile b/utest/Makefile
index f10b709..9bd3dea 100644
--- a/utest/Makefile
+++ b/utest/Makefile
@@ -10,9 +10,11 @@ OBJS =
 OBJS += trace-utest.o
 OBJS += tracefs-utest.o
 
+LIBTRACEFS_STATIC ?= $(obj)/lib/libtracefs.a
+
 LIBS += -lcunit				\
 	-ldl				\
-	$(obj)/lib/libtracefs.a
+	$(LIBTRACEFS_STATIC)
 
 OBJS := $(OBJS:%.o=$(bdir)/%.o)
 
@@ -21,7 +23,7 @@ $(bdir):
 
 $(OBJS): | $(bdir)
 
-$(bdir)/trace-utest: $(OBJS) $(obj)/lib/libtracefs.a
+$(bdir)/trace-utest: $(OBJS) $(LIBTRACEFS_STATIC)
 	$(Q)$(do_app_build)
 
 $(bdir)/%.o: %.c
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-24 19:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05 14:53 [PATCH 1/2] libtracefs: Use LIBTRACEFS_STATIC for utest Benjamin Drung
2026-06-05 14:53 ` [PATCH 2/2] libtracefs: Support EXTRA_LIBS " Benjamin Drung
2026-08-26 20:37 ` [PATCH 1/2] libtracefs: Use LIBTRACEFS_STATIC " Steven Rostedt
2026-09-23 20:56   ` [PATCH v2 0/3] Ubuntu patches Benjamin Drung
2026-09-23 20:56     ` [PATCH v2 1/3] libtracefs utest: Only use online CPUs during tests Benjamin Drung
2026-09-23 20:56     ` [PATCH v2 2/3] libtracefs: Use LIBTRACEFS_STATIC for utest Benjamin Drung
2026-09-23 20:56     ` [PATCH v2 3/3] libtracefs: Support EXTRA_LIBS " Benjamin Drung
2026-09-24 19:45     ` [PATCH v2 0/3] Ubuntu patches Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox