diff mbox series

[1/3] tracefs: Include -ltracecmd to libtracefs.so build

Message ID 20200125025032.246345729@goodmis.org (mailing list archive)
State Accepted
Commit 60e1c238465a9cd8d021fa826cbb3a758f628c6f
Headers show
Series trace-cmd: Various updates and fixes | expand

Commit Message

Steven Rostedt Jan. 25, 2020, 2:50 a.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

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@goodmis.org>
---
 lib/tracefs/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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)