[gdl] Fixed .so name generation so gdl has a suitable .so name



commit 9dc3ca4d892aba477c568d710d0add681ed9f465
Author: Johannes Schmid <jhs gnome org>
Date:   Wed May 13 11:19:02 2009 +0200

    Fixed .so name generation so gdl has a suitable .so name
---
 configure.in    |   17 +++++++++++++++++
 gdl/Makefile.am |    3 ++-
 2 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 9a0b10a..d4278ba 100644
--- a/configure.in
+++ b/configure.in
@@ -12,6 +12,23 @@ AM_CONFIG_HEADER(config.h)
 GDL_MAJOR_VERSION=2
 GDL_MINOR_VERSION=27
 GDL_MICRO_VERSION=1
+
+dnl increment if the interface has additions, changes, removals.
+GDL_CURRENT=1
+
+dnl increment any time the source changes; set to
+dnl  0 if you increment CURRENT
+GDL_REVISION=0
+
+dnl increment if any interfaces have been added; set to 0
+dnl  if any interfaces have been changed or removed. removal has
+dnl  precedence over adding, so set to 0 if both happened.
+GDL_AGE=0
+
+AC_SUBST(GDL_CURRENT)
+AC_SUBST(GDL_REVISION)
+AC_SUBST(GDL_AGE)
+
 PACKAGE=gdl
 GDL_VERSION=$GDL_MAJOR_VERSION.$GDL_MINOR_VERSION.$GDL_MICRO_VERSION
 
diff --git a/gdl/Makefile.am b/gdl/Makefile.am
index fd27054..046185e 100644
--- a/gdl/Makefile.am
+++ b/gdl/Makefile.am
@@ -64,7 +64,8 @@ libgdl_1_la_LIBADD = \
 	$(GDL_DEPENDENCIES_LIBS) \
 	$(XML_LIBS)
 
-libgdl_1_la_LDFLAGS = $(EXTRA_LDFLAGS)
+libgdl_1_la_LDFLAGS = $(EXTRA_LDFLAGS) \
+		      -version-info $(GDL_CURRENT):$(GDL_REVISION):$(GDL_AGE)
 
 noinst_PROGRAMS=test-dock
 



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