From 7d20b8b632da36d2dfcfc6ca75f3f4766b933829 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 10 Feb 2013 22:47:02 +0100 Subject: Add soname versioning for supported systems --- configure.ac | 10 ++++++++++ src/Makefile.am | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.1-32-gdbae