[augeas-devel] [PATCH] Version libfa and libaugeas
David Lutterkort
dlutter at redhat.com
Thu Aug 7 22:19:18 UTC 2008
2 files changed, 7 insertions(+), 1 deletion(-)
configure.ac | 4 ++++
src/Makefile.am | 4 +++-
# HG changeset patch
# User David Lutterkort <dlutter at redhat.com>
# Date 1218147552 25200
# Node ID 22c0afc4cf5a669b2dc64334a80df595c763d766
# Parent d389dde421fc17e1c3e5076487c13350cb1c12a8
Version libfa and libaugeas
Use libtool's version support to properly version these two libraries. For
libaugeas, we also bump the minor version, since we just added aug_mv to
the interface.
diff -r d389dde421fc -r 22c0afc4cf5a configure.ac
--- a/configure.ac Thu Aug 07 14:16:53 2008 -0700
+++ b/configure.ac Thu Aug 07 15:19:12 2008 -0700
@@ -3,6 +3,10 @@
AC_CONFIG_AUX_DIR([build/aux])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([-Wno-portability])
+
+dnl Version info in libtool's notation
+AC_SUBST([LIBAUGEAS_VERSION_INFO], [1:0:1])
+AC_SUBST([LIBFA_VERSION_INFO], [0:0:0])
AC_GNU_SOURCE
diff -r d389dde421fc -r 22c0afc4cf5a src/Makefile.am
--- a/src/Makefile.am Thu Aug 07 14:16:53 2008 -0700
+++ b/src/Makefile.am Thu Aug 07 15:19:12 2008 -0700
@@ -24,7 +24,8 @@
memory.h memory.c ref.h \
syntax.c syntax.h parser.y builtin.c lens.c lens.h regexp.c \
transform.c get.c put.c list.h
-libaugeas_la_LDFLAGS = -Wl,--version-script=$(srcdir)/augeas_sym.version
+libaugeas_la_LDFLAGS = -Wl,--version-script=$(srcdir)/augeas_sym.version \
+ -version-info $(LIBAUGEAS_VERSION_INFO)
libaugeas_la_LIBADD = liblexer.la libfa.la $(GNULIB)
augtool_SOURCES = augtool.c
@@ -34,6 +35,7 @@
augparse_LDADD = libaugeas.la $(GNULIB)
libfa_la_SOURCES = fa.c fa.h hash.c hash.h memory.c memory.h ref.h
+libfa_la_LDFLAGS = -version-info $(LIBFA_VERSION_INFO)
liblexer_la_SOURCES = lexer.l
liblexer_la_CFLAGS = $(AM_CFLAGS) -Wno-error
More information about the augeas-devel
mailing list