libtraceevent: allow unsetting LIBTRACEEVENT_STATIC
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.
Signed-off-by Sudip Mukherjee <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -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