diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-07-19 20:03:44 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-23 16:30:35 -0400 |
commit | 6060dcbc9f218c2710c13f778d8bf60d992c53d5 (patch) | |
tree | 93d1c7776e57b15891db6541354f87bdf56bc1b5 | |
parent | 255c93c97013cab3a951f49ecbda88ad50f8237f (diff) | |
download | trace-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.mk | 2 |
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) \ |