aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-07-19 20:03:44 -0700
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-07-23 16:30:35 -0400
commit6060dcbc9f218c2710c13f778d8bf60d992c53d5 (patch)
tree93d1c7776e57b15891db6541354f87bdf56bc1b5
parent255c93c97013cab3a951f49ecbda88ad50f8237f (diff)
downloadtrace-cmd-6060dcbc9f218c2710c13f778d8bf60d992c53d5.tar.gz
trace-cmd: Set SONAME on shared libraries
Currently trace-cmd installs some shared libraries, but does not set a SONAME on these. This often violates distro policies, so it should at least set something. This patch sets it to the name of the file, which is somewhat naieve, but works for many libraries. Generally it should be set to have an ABI version as the extension, so when the developer breaks ABI, they can change the soname. Link: http://lore.kernel.org/linux-trace-devel/20190720030344.1991393-5-chutzpah@gentoo.org Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r--scripts/utils.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/utils.mk b/scripts/utils.mk
index 260023a1..9eb127d9 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -54,7 +54,7 @@ do_build_static_lib = \
do_compile_shared_library = \
($(print_shared_lib_compile) \
- $(CC) --shared $^ -o $@)
+ $(CC) --shared $^ -Wl,-soname,$@ -o $@)
do_compile_plugin_obj = \
($(print_plugin_obj_compile) \