[gsound] build: Use proper libtool library versioning
- From: Tristan Brindle <tbrindle src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsound] build: Use proper libtool library versioning
- Date: Wed, 26 Nov 2014 16:18:32 +0000 (UTC)
commit 333c4513addc3690dbb482a85b341a56d1c0d159
Author: Tristan Brindle <t c brindle gmail com>
Date: Thu Nov 27 00:03:43 2014 +0800
build: Use proper libtool library versioning
At least, I think this is the proper way to do it.
configure.ac | 11 +++++++++++
gsound/Makefile.am | 4 +++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a3f4997..1291476 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,17 @@ AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_VALAC
+# Before making a release, the 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
+
+GSOUND_LT_VERSION=0:0:0
+AC_SUBST(GSOUND_LT_VERSION)
+
LT_INIT
GOBJECT_REQUIRED=2.36.0
diff --git a/gsound/Makefile.am b/gsound/Makefile.am
index f2bed00..873ce01 100644
--- a/gsound/Makefile.am
+++ b/gsound/Makefile.am
@@ -17,7 +17,9 @@ libgsound_la_CFLAGS =\
-g \
${NULL}
-libgsound_la_LDFLAGS =
+libgsound_la_LDFLAGS = \
+ -version-info $(GSOUND_LT_VERSION) \
+ $(NULL)
libgsound_la_LIBADD = \
$(GSOUND_LIBS) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]