Message ID | 20241107202849.340335-1-sudipm.mukherjee@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 08eb2e1ca2c1ab3ab949c8ea363b96794ac8971b |
Headers | show |
Series | libtraceevent: allow unsetting LIBTRACEEVENT_STATIC | expand |
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
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(-)