Blame SOURCES/lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch

0c610f
From 7de2bd7e769f10521e3d0c2cb42c6f6b9b505dd0 Mon Sep 17 00:00:00 2001
0c610f
From: Xin Long <lucien.xin@gmail.com>
0c610f
Date: Thu, 16 Aug 2018 14:12:30 +0800
0c610f
Subject: [PATCH] configure.ac: add CURRENT REVISION and AGE for libsctp and
0c610f
 libwithsctp
0c610f
0c610f
Add CURRENT REVISION and AGE for libsctp and libwithsctp in
0c610f
configure.ac to update these 2 library version information.
0c610f
0c610f
Compatible with before, they will start from 1:18:0. But each
0c610f
will get updated according to their definitions in the future.
0c610f
0c610f
Signed-off-by: Xin Long <lucien.xin@gmail.com>
0c610f
Acked-by: Neil Horman <nhorman@tuxdriver.com>
0c610f
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
0c610f
---
0c610f
 configure.ac             | 7 +++++++
0c610f
 src/lib/Makefile.am      | 7 +++++--
0c610f
 src/withsctp/Makefile.am | 3 ++-
0c610f
 3 files changed, 14 insertions(+), 3 deletions(-)
0c610f
0c610f
diff --git a/configure.ac b/configure.ac
0c610f
index 275ef4e..2ae36ec 100644
0c610f
--- a/configure.ac
0c610f
+++ b/configure.ac
0c610f
@@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE,
0c610f
 dnl configure will fail ...)
0c610f
 
0c610f
 AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/])
0c610f
+AC_SUBST(LIBSCTP_CURRENT, 1)
0c610f
+AC_SUBST(LIBSCTP_REVISION, 18)
0c610f
+AC_SUBST(LIBSCTP_AGE, 0)
0c610f
+AC_SUBST(LIBWITHSCTP_CURRENT, 1)
0c610f
+AC_SUBST(LIBWITHSCTP_REVISION, 18)
0c610f
+AC_SUBST(LIBWITHSCTP_AGE, 0)
0c610f
+
0c610f
 AC_CONFIG_AUX_DIR(bin)
0c610f
 AC_CONFIG_SRCDIR([src/apps/sctp_darn.c])
0c610f
 AC_CONFIG_HEADERS([config.h])
0c610f
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
0c610f
index 6100c56..1d62175 100644
0c610f
--- a/src/lib/Makefile.am
0c610f
+++ b/src/lib/Makefile.am
0c610f
@@ -8,5 +8,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include
0c610f
 
0c610f
 lib_LTLIBRARIES = libsctp.la
0c610f
 
0c610f
-libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c addrs.c sendmsg.c recvmsg.c Versions.map
0c610f
-libsctp_la_LDFLAGS = -version-info 1:17:0 -Wl,--version-script=$(srcdir)/Versions.map
0c610f
+libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c \
0c610f
+		addrs.c sendmsg.c recvmsg.c Versions.map
0c610f
+libsctp_la_LDFLAGS = -version-info \
0c610f
+		@LIBSCTP_CURRENT@:@LIBSCTP_REVISION@:@LIBSCTP_AGE@ \
0c610f
+		-Wl,--version-script=$(srcdir)/Versions.map
0c610f
diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am
0c610f
index 70b1cca..1f6ca37 100644
0c610f
--- a/src/withsctp/Makefile.am
0c610f
+++ b/src/withsctp/Makefile.am
0c610f
@@ -14,7 +14,8 @@ AM_CPPFLAGS=-I$(top_srcdir)/src/include
0c610f
 pkglib_LTLIBRARIES = libwithsctp.la
0c610f
 libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \
0c610f
 	sctp_sockopt.c sctp_socket.h
0c610f
-libwithsctp_la_LDFLAGS = -version-info 1:17:0 -ldl
0c610f
+libwithsctp_la_LDFLAGS = -version-info \
0c610f
+	@LIBWITHSCTP_CURRENT@:@LIBWITHSCTP_REVISION@:@LIBWITHSCTP_AGE@ -ldl
0c610f
 
0c610f
 pkgdoc_DATA = sctp_load_libs.c sctp_socket.c sctp_bind.c \
0c610f
 	sctp_sockopt.c sctp_socket.h checksctp.c
0c610f
-- 
0c610f
1.8.3.1
0c610f