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

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