diff mbox series

[v2] libtracefs: Link unit test to use static local library

Message ID 20210115050335.1193851-1-tz.stoyanov@gmail.com (mailing list archive)
State Accepted
Commit ee9605e0c7d5265914c21b0a0dd901cb5f146afd
Headers show
Series [v2] libtracefs: Link unit test to use static local library | expand

Commit Message

Tzvetomir Stoyanov (VMware) Jan. 15, 2021, 5:03 a.m. UTC
Unit test must test the library located in the sorce tree, instead the
one installed in the system.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
v2 changes:
  - Link with local static library, as Steven suggested.

 utest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utest/Makefile b/utest/Makefile
index 403540a..4899365 100644
--- a/utest/Makefile
+++ b/utest/Makefile
@@ -12,7 +12,7 @@  OBJS += tracefs-utest.o
 
 LIBS += -lcunit				\
 	-ldl				\
-	-L$(obj)/lib/tracefs -ltracefs
+	$(obj)/lib/tracefs/libtracefs.a
 
 OBJS := $(OBJS:%.o=$(bdir)/%.o)
 DEPS := $(OBJS:$(bdir)/%.o=$(bdir)/.%.d)