Skip to contentSkip to conversation

libtraceevent: allow unsetting LIBTRACEEVENT_STATIC

PATCH New Sudip Mukherjee 1 participant 1 message Nov 7, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: allow unsetting LIBTRACEEVENT_STATIC

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 5f3e372..0afaef0 100644
@@ -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
Signature · 1 line
2.39.2