From: Punit Agrawal Date: Sun, 3 Mar 2019 08:40:03 +0900 Subject: Append version to soname --- Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 4c12a56..8cc9b12 100644 --- a/Makefile.in +++ b/Makefile.in @@ -28,6 +28,7 @@ SOURCE += *.c *.lds Makefile NODEPTARGETS= REL_VERSION=2.23 +SOVERSION=0 INSTALL = install @@ -329,11 +330,11 @@ obj64/libhugetlbfs.a: $(LIBOBJS64) obj32/libhugetlbfs.so: $(LIBOBJS32) @$(VECHO) LD32 "(shared)" $@ - $(CC32) $(LDFLAGS) -Wl,--version-script=version.lds -Wl,-soname,$(notdir $@) -shared -o $@ $^ $(LDLIBS) + $(CC32) $(LDFLAGS) -Wl,--version-script=version.lds -Wl,-soname,$(notdir $@).$(SOVERSION) -shared -o $@ $^ $(LDLIBS) obj64/libhugetlbfs.so: $(LIBOBJS64) @$(VECHO) LD64 "(shared)" $@ - $(CC64) $(LDFLAGS) -Wl,--version-script=version.lds -Wl,-soname,$(notdir $@) -shared -o $@ $^ $(LDLIBS) + $(CC64) $(LDFLAGS) -Wl,--version-script=version.lds -Wl,-soname,$(notdir $@).$(SOVERSION) -shared -o $@ $^ $(LDLIBS) #obj32/libhugetlbfs_privutils.a: $(LIBPUOBJS:%=obj32/%) # @$(VECHO) AR32 $@