35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From: Punit Agrawal <punitagrawal@gmail.com>
|
|
Date: Sun, 3 Mar 2019 08:40:03 +0900
|
|
Subject: Append version to soname
|
|
|
|
---
|
|
Makefile | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index ba8e4a8..da318a6 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -24,6 +24,7 @@ SOURCE += *.c *.lds Makefile
|
|
NODEPTARGETS=<version.h> <clean>
|
|
|
|
REL_VERSION=2.22
|
|
+SOVERSION=0
|
|
|
|
INSTALL = install
|
|
|
|
@@ -308,11 +309,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 $@
|