Add library version information
authorYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 10 Jun 2011 15:35:49 +0000 (11:35 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Jun 2011 15:35:49 +0000 (11:35 -0400)
Following the guidelines from libtool
(http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.htm)
this patch add version information to the distributed libraries.
For the next release, the version will be 1:0:0.
It will need to be updated before each release.

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile.am
configure.ac

index f39fdea0087dfbaad0d9479ae74343ee3a2f5226..c92426b156ce72f809d24747641656040b569f93 100644 (file)
@@ -34,28 +34,34 @@ lib_LTLIBRARIES = liburcu-cds.la liburcu.la liburcu-qsbr.la \
 
 liburcu_cds_la_SOURCES = wfqueue.c wfstack.c rculfqueue.c rculfstack.c \
                        $(COMPAT)
+liburcu_cds_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_la_LIBADD = -lurcu-cds
 liburcu_la_DEPENDENCIES = liburcu-cds.la
+liburcu_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
 liburcu_qsbr_la_LIBADD = -lurcu-cds
 liburcu_qsbr_la_DEPENDENCIES = liburcu-cds.la
+liburcu_qsbr_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_mb_la_CFLAGS = -DRCU_MB
 liburcu_mb_la_LIBADD = -lurcu-cds
 liburcu_mb_la_DEPENDENCIES = liburcu-cds.la
+liburcu_mb_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_signal_la_CFLAGS = -DRCU_SIGNAL
 liburcu_signal_la_LIBADD = -lurcu-cds
 liburcu_signal_la_DEPENDENCIES = liburcu-cds.la
+liburcu_signal_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
 liburcu_bp_la_LIBADD = -lurcu-cds
 liburcu_bp_la_DEPENDENCIES = liburcu-cds.la
+liburcu_bp_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \
index 6b8a35a992aa4f28aae9d354365e976370619c80..179cb7d9643584a72b0edbd7845a43e95b223132 100644 (file)
@@ -3,6 +3,11 @@
 
 
 AC_INIT([userspace-rcu], [0.5.4], [mathieu dot desnoyers at efficios dot com])
+
+# Following the numbering scheme proposed by libtool for the library version
+# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+AC_SUBST([URCU_LIBRARY_VERSION], [1:0:0])
+
 AC_CONFIG_AUX_DIR([config])
 AC_CANONICAL_TARGET
 AC_CANONICAL_HOST
This page took 0.026286 seconds and 4 git commands to generate.