From d2faf2ed6303be4e206e8f4d0bd0a6e7aa5baac5 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 2 May 2015 09:06:55 -0500 Subject: set the shared library version number --- libtls-standalone/configure.ac | 1 + libtls-standalone/src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libtls-standalone/configure.ac b/libtls-standalone/configure.ac index d52e22a..d076873 100644 --- a/libtls-standalone/configure.ac +++ b/libtls-standalone/configure.ac @@ -13,6 +13,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. AC_INIT([libtls], m4_esyscmd([tr -d '\n' < VERSION])) +AC_SUBST([LIBTLS_VERSION], m4_esyscmd([sed -e 's/\./:/g' VERSION | tr -d '\n'])) AC_CANONICAL_HOST AM_INIT_AUTOMAKE([subdir-objects]) diff --git a/libtls-standalone/src/Makefile.am b/libtls-standalone/src/Makefile.am index cb9dd7f..e821186 100644 --- a/libtls-standalone/src/Makefile.am +++ b/libtls-standalone/src/Makefile.am @@ -2,7 +2,7 @@ AM_CFLAGS = -I$(top_srcdir)/include lib_LTLIBRARIES = libtls.la -libtls_la_LDFLAGS = -no-undefined +libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined libtls_la_LIBADD = -lcrypto -lssl $(PLATFORM_LDADD) libtls_la_LIBADD += $(top_builddir)/compat/libcompat.la libtls_la_LIBADD += $(top_builddir)/compat/libcompatnoopt.la -- cgit v1.2.3-55-g6feb