From 3f24f048762736e1a5d785a080fec7e84172e708 Mon Sep 17 00:00:00 2001 From: Sergey 'Jin' Bostandzhyan Date: Wed, 11 Jan 2017 22:41:11 +0100 Subject: Setup autotools to read .so version info from a separate file We want to use the same libtool style .so versions in both build systems, ideally both systems should read the version information from the same configuration file. This commit introduces an so.version configuration file and sets up the autotools to use it. The version numbers in so.version define the ABI compatibility and should be updated prior to each release. implements #323 --- build/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build') diff --git a/build/Makefile.am b/build/Makefile.am index ea844b3f..e4f36509 100644 --- a/build/Makefile.am +++ b/build/Makefile.am @@ -4,6 +4,18 @@ lib_LTLIBRARIES = noinst_bindir = $(top_builddir)/build EXTRA_DIST= +if SET_SO_VERSION + +include ../so.version + +LT_LDFLAGS=-version-info $(CURRENT):$(REVISION):$(AGE) + +else + +LT_LDFLAGS=-avoid-version + +endif + include ../toxcore/Makefile.inc include ../toxdns/Makefile.inc include ../toxencryptsave/Makefile.inc -- cgit v1.2.3