diff mbox series

[10/13] trace-cmd: Install the soft links for libtracecmd.so

Message ID 20201211171014.547091932@goodmis.org (mailing list archive)
State Accepted
Commit 62f87abb9a4ab25e5a05bf1106ecb17e5024a021
Headers show
Series trace-cmd: Clean ups to the Makefile for using external libraries | expand

Commit Message

Steven Rostedt Dec. 11, 2020, 5:08 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The libtracecmd.so.$(LIBTRACECMD_VERSION) was being installed into the lib/
directory, but that is not enough for applications to use. It also needs the
libtracecmd.so and libtracecmd.so.$(LIBTC_VERSION) soft links to be
installed too.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 lib/trace-cmd/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/lib/trace-cmd/Makefile b/lib/trace-cmd/Makefile
index 96acdaf9aa27..838a59ddf332 100644
--- a/lib/trace-cmd/Makefile
+++ b/lib/trace-cmd/Makefile
@@ -61,6 +61,8 @@  $(OBJS): $(bdir)/%.o : $(bdir)/.%.d
 
 install_libs:
 	$(Q)$(call do_install,$(LIBTRACECMD_SHARED),$(libdir_SQ))
+	cp -fpR $(LIBTRACECMD_SHARED_VERSION) $(DESTDIR)$(libdir_SQ)
+	cp -fpR $(LIBTRACECMD_SHARED_SO) $(DESTDIR)$(libdir_SQ)
 	$(Q)$(call do_install,$(src)/include/trace-cmd/trace-cmd.h,$(includedir_SQ)/trace-cmd)
 
 dep_includes := $(wildcard $(DEPS))