[PATCH lksctp-tools] withsctp: do not reuse PACKAGE_VERSION as lib version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently and likely in the future, they resolv to the same value, but
conceptually speaking they are different things. As we introduced
dedicated variables for libsctp and libwithsctp versioning, lets avoid
possible confusion and expand them instead of reusing the
PACKAGE_VERSION one.

Fixes: #28
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx>
---
 Makefile.rules           | 4 +++-
 src/withsctp/withsctp.in | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile.rules b/Makefile.rules
index d3693facfdfdbe6b0d776cd91e1fa7ae172e15b8..9488228fe017734a5e8976d27a76a23e2d373902 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -16,4 +16,6 @@ edit = @sed \
 	-e "s|\@bindir\@|$(bindir)|" \
 	-e "s|\@libdir\@|$(libdir)|" \
 	-e "s|\@PACKAGE\@|$(PACKAGE)|" \
-	-e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|"
+	-e "s|\@LIBWITHSCTP_CURRENT\@|$(LIBWITHSCTP_CURRENT)|" \
+	-e "s|\@LIBWITHSCTP_REVISION\@|$(LIBWITHSCTP_REVISION)|" \
+	-e "s|\@LIBWITHSCTP_AGE\@|$(LIBWITHSCTP_AGE)|"
diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in
index fda5ebc2059063c910a274fb63abe243c6d8eb62..ef4f7bbc2eccf71829cae66c178b579d4ffbf5e4 100644
--- a/src/withsctp/withsctp.in
+++ b/src/withsctp/withsctp.in
@@ -2,7 +2,7 @@
 # -*- sh -*-
 LIBDIR=@libdir@/@PACKAGE@
 BINDIR=@bindir@
-LIBVER=@PACKAGE_VERSION@
+LIBVER=@LIBWITHSCTP_CURRENT@.@LIBWITHSCTP_AGE@.@LIBWITHSCTP_REVISION@
 export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER}
 if ! ${BINDIR}/checksctp 2> /dev/null
 then
-- 
2.19.2




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux