From 850a5b642ae3524ede8a6c5bc990ca455d9ca3aa Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 2 May 2019 03:15:24 -0700 Subject: [PATCH] build: add full version to SONAME for shared libraries Fixes issue #781. Signed-off-by: Jim Harris Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452895 (master) (cherry picked from commit cb0c0509f4bd3fa7249d1ab177f3752d4a0f5593) Change-Id: Ic0793721cb996ec01286ff21ed10fe2076b706ec Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457193 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk --- mk/spdk.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index 011fcd1897..efdcc0e936 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -265,7 +265,7 @@ SO_SUFFIX_ALL := $(SO_VER).$(SO_MINOR) # Provide function to ease build of a shared lib define spdk_build_realname_shared_lib $(CC) -o $@ -shared $(CPPFLAGS) $(LDFLAGS) \ - -Wl,--soname,$(patsubst %.so.$(SO_SUFFIX_ALL),%.so.$(SO_VER),$(notdir $@)) \ + -Wl,--soname,$(patsubst %.so.$(SO_SUFFIX_ALL),%.so.$(SO_SUFFIX_ALL),$(notdir $@)) \ -Wl,--whole-archive $(1) -Wl,--no-whole-archive \ -Wl,--version-script=$(2) \ $(3)