From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> Currently the path of the libtraceevent library is hardcoded when building libtracecmd.so, and libtracefs is not even specified. In order to use libtracecmd.so without needing to add -ltraceevent or -ltracefs, use the defined LIBTRACEVENT_LIBS and LIBTRACEFS_LIBS for the LIBS macro to build libtracecmd.so. Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- lib/trace-cmd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trace-cmd/Makefile b/lib/trace-cmd/Makefile index 838a59ddf332..75e4fea4e3e0 100644 --- a/lib/trace-cmd/Makefile +++ b/lib/trace-cmd/Makefile @@ -38,7 +38,7 @@ $(DEPS): | $(bdir) $(LIBTRACECMD_STATIC): $(OBJS) $(Q)$(call do_build_static_lib) -LIBS = -L$(obj)/lib/traceevent -ltraceevent +LIBS = $(LIBTRACEEVENT_LDLAGS) $(LIBTRACEFS_LDLAGS) $(LIBTRACECMD_SHARED_VERSION): $(LIBTRACECMD_SHARED) @ln -sf $(<F) $@ -- 2.29.2