* [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp
@ 2018-08-16 6:12 Xin Long
2018-08-16 11:22 ` Neil Horman
2018-08-16 18:18 ` Marcelo Ricardo Leitner
0 siblings, 2 replies; 3+ messages in thread
From: Xin Long @ 2018-08-16 6:12 UTC (permalink / raw)
To: linux-sctp
Add CURRENT REVISION and AGE for libsctp and libwithsctp in
configure.ac to update these 2 library version information.
Compatible with before, they will start from 1:18:0. But each
will get updated according to their definitions in the future.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
configure.ac | 7 +++++++
src/lib/Makefile.am | 7 +++++--
src/withsctp/Makefile.am | 3 ++-
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 275ef4e..2ae36ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE,
dnl configure will fail ...)
AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/])
+AC_SUBST(LIBSCTP_CURRENT, 1)
+AC_SUBST(LIBSCTP_REVISION, 18)
+AC_SUBST(LIBSCTP_AGE, 0)
+AC_SUBST(LIBWITHSCTP_CURRENT, 1)
+AC_SUBST(LIBWITHSCTP_REVISION, 18)
+AC_SUBST(LIBWITHSCTP_AGE, 0)
+
AC_CONFIG_AUX_DIR(bin)
AC_CONFIG_SRCDIR([src/apps/sctp_darn.c])
AC_CONFIG_HEADERS([config.h])
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 6100c56..1d62175 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -8,5 +8,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include
lib_LTLIBRARIES = libsctp.la
-libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c addrs.c sendmsg.c recvmsg.c Versions.map
-libsctp_la_LDFLAGS = -version-info 1:17:0 -Wl,--version-script=$(srcdir)/Versions.map
+libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c \
+ addrs.c sendmsg.c recvmsg.c Versions.map
+libsctp_la_LDFLAGS = -version-info \
+ @LIBSCTP_CURRENT@:@LIBSCTP_REVISION@:@LIBSCTP_AGE@ \
+ -Wl,--version-script=$(srcdir)/Versions.map
diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am
index 70b1cca..1f6ca37 100644
--- a/src/withsctp/Makefile.am
+++ b/src/withsctp/Makefile.am
@@ -14,7 +14,8 @@ AM_CPPFLAGS=-I$(top_srcdir)/src/include
pkglib_LTLIBRARIES = libwithsctp.la
libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \
sctp_sockopt.c sctp_socket.h
-libwithsctp_la_LDFLAGS = -version-info 1:17:0 -ldl
+libwithsctp_la_LDFLAGS = -version-info \
+ @LIBWITHSCTP_CURRENT@:@LIBWITHSCTP_REVISION@:@LIBWITHSCTP_AGE@ -ldl
pkgdoc_DATA = sctp_load_libs.c sctp_socket.c sctp_bind.c \
sctp_sockopt.c sctp_socket.h checksctp.c
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp
2018-08-16 6:12 [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp Xin Long
@ 2018-08-16 11:22 ` Neil Horman
2018-08-16 18:18 ` Marcelo Ricardo Leitner
1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2018-08-16 11:22 UTC (permalink / raw)
To: linux-sctp
On Thu, Aug 16, 2018 at 02:12:30PM +0800, Xin Long wrote:
> Add CURRENT REVISION and AGE for libsctp and libwithsctp in
> configure.ac to update these 2 library version information.
>
> Compatible with before, they will start from 1:18:0. But each
> will get updated according to their definitions in the future.
>
> Signed-off-by: Xin Long <lucien.xin@gmail.com>
> ---
> configure.ac | 7 +++++++
> src/lib/Makefile.am | 7 +++++--
> src/withsctp/Makefile.am | 3 ++-
> 3 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 275ef4e..2ae36ec 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE,
> dnl configure will fail ...)
>
> AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/])
> +AC_SUBST(LIBSCTP_CURRENT, 1)
> +AC_SUBST(LIBSCTP_REVISION, 18)
> +AC_SUBST(LIBSCTP_AGE, 0)
> +AC_SUBST(LIBWITHSCTP_CURRENT, 1)
> +AC_SUBST(LIBWITHSCTP_REVISION, 18)
> +AC_SUBST(LIBWITHSCTP_AGE, 0)
> +
> AC_CONFIG_AUX_DIR(bin)
> AC_CONFIG_SRCDIR([src/apps/sctp_darn.c])
> AC_CONFIG_HEADERS([config.h])
> diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
> index 6100c56..1d62175 100644
> --- a/src/lib/Makefile.am
> +++ b/src/lib/Makefile.am
> @@ -8,5 +8,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include
>
> lib_LTLIBRARIES = libsctp.la
>
> -libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c addrs.c sendmsg.c recvmsg.c Versions.map
> -libsctp_la_LDFLAGS = -version-info 1:17:0 -Wl,--version-script=$(srcdir)/Versions.map
> +libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c \
> + addrs.c sendmsg.c recvmsg.c Versions.map
> +libsctp_la_LDFLAGS = -version-info \
> + @LIBSCTP_CURRENT@:@LIBSCTP_REVISION@:@LIBSCTP_AGE@ \
> + -Wl,--version-script=$(srcdir)/Versions.map
> diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am
> index 70b1cca..1f6ca37 100644
> --- a/src/withsctp/Makefile.am
> +++ b/src/withsctp/Makefile.am
> @@ -14,7 +14,8 @@ AM_CPPFLAGS=-I$(top_srcdir)/src/include
> pkglib_LTLIBRARIES = libwithsctp.la
> libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \
> sctp_sockopt.c sctp_socket.h
> -libwithsctp_la_LDFLAGS = -version-info 1:17:0 -ldl
> +libwithsctp_la_LDFLAGS = -version-info \
> + @LIBWITHSCTP_CURRENT@:@LIBWITHSCTP_REVISION@:@LIBWITHSCTP_AGE@ -ldl
>
> pkgdoc_DATA = sctp_load_libs.c sctp_socket.c sctp_bind.c \
> sctp_sockopt.c sctp_socket.h checksctp.c
> --
> 2.1.0
>
>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp
2018-08-16 6:12 [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp Xin Long
2018-08-16 11:22 ` Neil Horman
@ 2018-08-16 18:18 ` Marcelo Ricardo Leitner
1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-08-16 18:18 UTC (permalink / raw)
To: linux-sctp
On Thu, Aug 16, 2018 at 02:12:30PM +0800, Xin Long wrote:
> Add CURRENT REVISION and AGE for libsctp and libwithsctp in
> configure.ac to update these 2 library version information.
>
> Compatible with before, they will start from 1:18:0. But each
> will get updated according to their definitions in the future.
>
> Signed-off-by: Xin Long <lucien.xin@gmail.com>
> ---
> configure.ac | 7 +++++++
> src/lib/Makefile.am | 7 +++++--
> src/withsctp/Makefile.am | 3 ++-
> 3 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 275ef4e..2ae36ec 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE,
> dnl configure will fail ...)
>
> AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/])
> +AC_SUBST(LIBSCTP_CURRENT, 1)
> +AC_SUBST(LIBSCTP_REVISION, 18)
> +AC_SUBST(LIBSCTP_AGE, 0)
> +AC_SUBST(LIBWITHSCTP_CURRENT, 1)
> +AC_SUBST(LIBWITHSCTP_REVISION, 18)
> +AC_SUBST(LIBWITHSCTP_AGE, 0)
Applied. Thanks, now it will be harder to miss these =)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-16 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-16 6:12 [PATCH lksctp-tools] configure.ac: add CURRENT REVISION and AGE for libsctp and libwithsctp Xin Long
2018-08-16 11:22 ` Neil Horman
2018-08-16 18:18 ` Marcelo Ricardo Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).