Skip to contentSkip to conversation

libtracefs: Link unit test to use static local library

PATCH New Tzvetomir Stoyanov (VMware) 1 participant 1 message Jan 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libtracefs: Link unit test to use static local library

Unit test must test the library located in the sorce tree, instead the one installed in the system.

---
v2 changes:
- Link with local static library, as Steven suggested.

 utest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utest/Makefile +1 -1
index 403540a..4899365 100644
@@ -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)
Signature · 1 line
2.29.2