+1
before:
/usr/lib64/libcmpiutil.so -> libcmpiutil.so.0.0.0
/usr/lib64/libcmpiutil.so.0 -> libcmpiutil.so.0.0.0
/usr/lib64/libcmpiutil.so.0.0.0
after:
/usr/lib64/libcmpiutil.so -> libcmpiutil.so.0.5.5
/usr/lib64/libcmpiutil.so.0 -> libcmpiutil.so.0.5.5
/usr/lib64/libcmpiutil.so.0.5.5
On 05/20/2011 05:05 PM, Eduardo Lima (Etrunko) wrote:
# HG changeset patch
# User Eduardo Lima (Etrunko)<eblima(a)br.ibm.com>
# Date 1305902058 10800
# Node ID 4bc55e4ed0c003e5e56205d64839b1b239921e92
# Parent 308920f42e59be2aa8a4055a277fed5c373a319e
libcmpiutil: Add libtool version info
With this patch, we will produce nicely versioned .so for libcmpiutil
and libcueoparser, as follows:
/usr/lib64/libcmpiutil.so -> libcmpiutil.so.0.5.5
/usr/lib64/libcmpiutil.so.0 -> libcmpiutil.so.0.5.5
/usr/lib64/libcmpiutil.so.0.5.5
/usr/lib64/libcueoparser.so -> libcueoparser.so.0.5.5
/usr/lib64/libcueoparser.so.0 -> libcueoparser.so.0.5.5
/usr/lib64/libcueoparser.so.0.5.5
Signed-off-by: Eduardo Lima (Etrunko)<eblima(a)br.ibm.com>
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,7 @@
debug_util.c eo_parser_xml.c
libcmpiutil_la_CFLAGS = $(CFLAGS) $(CFLAGS_STRICT)
libcmpiutil_la_LIBADD = -lxml2
+libcmpiutil_la_LDFLAGS = -version-info @CMPIUTIL_VERSION_INFO@
libcmpiutil_la_DEPENDENCIES =
AM_LFLAGS = -Peo_parse_
@@ -32,6 +33,7 @@
if build_eoparser
libcueoparser_la_SOURCES = eo_util_parser.y eo_util_lexer.l eo_parser.c
+libcueoparser_la_LDFLAGS = -version-info @CMPIUTIL_VERSION_INFO@
libcmpiutil_la_DEPENDENCIES += libcueoparser.la
libcmpiutil_la_LIBADD += -lcueoparser
EOPARSER = libcueoparser.la
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,10 @@
# Copyright IBM Corp. 2007
-AC_INIT(CMPI Utility Library, 0.5.5,cvincent(a)us.ibm.com, libcmpiutil)
+m4_define([cmpiutil_maj], [0])
+m4_define([cmpiutil_min], [5])
+m4_define([cmpiutil_mic], [5])
+m4_define([cmpiutil_version], [cmpiutil_maj.cmpiutil_min.cmpiutil_mic])
+
+AC_INIT([CMPI Utility Library], [cmpiutil_version], [cvincent(a)us.ibm.com],
[libcmpiutil])
AC_CONFIG_SRCDIR([libcmpiutil.h])
@@ -34,6 +39,12 @@
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+m4_define([lt_cur], m4_eval(cmpiutil_maj + cmpiutil_min))
+m4_define([lt_rev], cmpiutil_mic)
+m4_define([lt_age], cmpiutil_min)
+CMPIUTIL_VERSION_INFO="lt_cur:lt_rev:lt_age"
+AC_SUBST(CMPIUTIL_VERSION_INFO)
+
AC_PROG_CC
AC_PROG_LEX
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent(a)linux.vnet.ibm.com