summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSergey 'Jin' Bostandzhyan <jin at mediatomb dot cc>2017-01-11 22:41:11 +0100
committerSergey 'Jin' Bostandzhyan <jin at mediatomb dot cc>2017-01-18 11:20:07 +0100
commit3f24f048762736e1a5d785a080fec7e84172e708 (patch)
tree3a0a66087a0d0d97bc19c6f4ee379f923f4ab9e8 /build
parent5ad3c9890574cfe91a856e4836a553973b7da1a9 (diff)
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
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.am12
1 files changed, 12 insertions, 0 deletions
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 =
4noinst_bindir = $(top_builddir)/build 4noinst_bindir = $(top_builddir)/build
5EXTRA_DIST= 5EXTRA_DIST=
6 6
7if SET_SO_VERSION
8
9include ../so.version
10
11LT_LDFLAGS=-version-info $(CURRENT):$(REVISION):$(AGE)
12
13else
14
15LT_LDFLAGS=-avoid-version
16
17endif
18
7include ../toxcore/Makefile.inc 19include ../toxcore/Makefile.inc
8include ../toxdns/Makefile.inc 20include ../toxdns/Makefile.inc
9include ../toxencryptsave/Makefile.inc 21include ../toxencryptsave/Makefile.inc