summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-10 22:47:02 +0100
committerGravatar Martin Szulecki2013-02-10 22:47:02 +0100
commit7d20b8b632da36d2dfcfc6ca75f3f4766b933829 (patch)
tree866fcef7a185d9d517e2aad880a26725ae608946
parentcb14f0440cb990b5761addb8086053ab83a3fe10 (diff)
downloadlibvformat-7d20b8b632da36d2dfcfc6ca75f3f4766b933829.tar.gz
libvformat-7d20b8b632da36d2dfcfc6ca75f3f4766b933829.tar.bz2
Add soname versioning for supported systems
-rw-r--r--configure.ac10
-rw-r--r--src/Makefile.am2
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 881c49d..62f8189 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,16 @@ AM_INIT_AUTOMAKE(libvformat, 1.2.0)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AM_CONFIG_HEADER(config.h)
+dnl libtool versioning
+# +1 : 0 : +1 == adds new functions to the interface
+# +1 : 0 : 0 == changes or removes functions (changes include both
+# changes to the signature and the semantic)
+# ? :+1 : ? == just internal changes
+# CURRENT : REVISION : AGE
+LIBVFORMAT_SO_VERSION=0:0:0
+
+AC_SUBST(LIBVFORMAT_SO_VERSION)
+
# Checks for programs.
# AC_PROG_CC
diff --git a/src/Makefile.am b/src/Makefile.am
index 7bedc4e..33170f2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,7 @@ libvformat_la_SOURCES = vf_access.c vf_malloc.c vf_strings.c vf_access_wrapper
EXTRA_DIST = *.h
-libvformat_la_LDFLAGS = -version-info 0
+libvformat_la_LDFLAGS = -version-info $(LIBVFORMAT_SO_VERSION)
if WIN32
libvformat_la_LDFLAGS += -no-undefined
endif