OSDN Git Service

libparted: set the shared library version number manually
authorJim Meyering <meyering@redhat.com>
Sat, 13 Feb 2010 08:25:56 +0000 (09:25 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 13 Feb 2010 08:47:16 +0000 (09:47 +0100)
* 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

index 2bdadd8..fb8351e 100644 (file)
@@ -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          \