[gom] gom: Add libtool versioning



commit 333d807b5d8533dc56dc27de496c132c49111b9c
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 17 17:22:58 2015 +0100

    gom: Add libtool versioning

 configure.ac         |    9 +++++++++
 gom/Makefile.include |    4 ++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 52a8cff..4ecdeb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,15 @@ AC_SUBST(GOM_MICRO_VERSION)
 AC_SUBST(GOM_API_VERSION)
 AC_SUBST(GOM_VERSION)
 
+# Before making a release, the GOM_LT_VERSION string should be modified.
+# The string is of the form C:R:A.
+# - If interfaces have been changed or added, but binary compatibility has
+#   been preserved, change to C+1:0:A+1
+# - If binary compatibility has been broken (eg removed or changed interfaces)
+#   change to C+1:0:0
+# - If the interface is the same as the previous version, change to C:R+1:A
+GOM_LT_VERSION=0:0:0
+AC_SUBST(GOM_LT_VERSION)
 
 dnl **************************************************************************
 dnl Check for Required Modules
diff --git a/gom/Makefile.include b/gom/Makefile.include
index fac0697..2862b8c 100644
--- a/gom/Makefile.include
+++ b/gom/Makefile.include
@@ -44,6 +44,10 @@ libgom_1_0_la_LIBADD += $(GIO_LIBS)
 libgom_1_0_la_LIBADD += $(GOBJECT_LIBS)
 libgom_1_0_la_LIBADD += $(SQLITE3_LIBS)
 
+libgom_1_0_la_LDFLAGS =
+libgom_1_0_la_LDFLAGS += -version-info $(GOM_LT_VERSION)
+libgom_1_0_la_LDFLAGS += -no-undefined
+
 if HAVE_INTROSPECTION
 
 -include $(INTROSPECTION_MAKEFILE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]