From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> There's functions that libtracefs.so uses that require libtracecmd.so compiled as well. Instead of requiring applicatons that use -ltracefs to also include -ltracecmd, simply add it to the build of libtracefs.so. Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- lib/tracefs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tracefs/Makefile b/lib/tracefs/Makefile index 5763e06d0326..f6d93ec84236 100644 --- a/lib/tracefs/Makefile +++ b/lib/tracefs/Makefile @@ -22,6 +22,8 @@ $(bdir): $(OBJS): | $(bdir) $(DEPS): | $(bdir) +LIBS = -L$(obj)/lib/trace-cmd -ltracecmd + $(bdir)/libtracefs.a: $(OBJS) $(Q)$(call do_build_static_lib) -- 2.24.1