[PATCH 2/2] libparted: set the shared library version number manually

Jim Meyering meyering at redhat.com
Sat Feb 13 08:25:56 UTC 2010


* libparted/Makefile.am (CURRENT, REVISION, AGE): Define here.
(libparted_la_LDFLAGS): Use them, rather than using the
automatically-defined LT_-prefixed variables.
Stop using the "-release" option.
Hans De Goede pointed out that the build process was automatically
changing the shared library name.
---
 libparted/Makefile.am |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/libparted/Makefile.am b/libparted/Makefile.am
index 2bdadd8..fb8351e 100644
--- a/libparted/Makefile.am
+++ b/libparted/Makefile.am
@@ -21,8 +21,15 @@ SUBDIRS       = labels fs . $(SUBDIRS_CHECK)

 partedincludedir      = -I$(top_srcdir)/lib -I$(top_srcdir)/include
 lib_LTLIBRARIES	      =	libparted.la
-libparted_la_LDFLAGS  = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-						-release $(LT_RELEASE)
+
+# Set the shared library version, per Libtool's guidelines.
+# For details, see the "Libtool's versioning system" section of "info libtool"
+CURRENT = 0
+REVISION = 1
+AGE = 0
+
+libparted_la_LDFLAGS  = -version-info $(CURRENT):$(REVISION):$(AGE)
+
 libparted_la_SOURCES  = debug.c			\
 			architecture.c		\
 			architecture.h		\
--
1.7.0.rc2.170.gbc565



More information about the parted-devel mailing list