From a6ce1eae54ca048ae7e7dfdcad05c5565a129226 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Thu, 26 Sep 2013 13:44:10 -0400 Subject: Fix libzfs_core changes to follow GNU libtool guidelines The GNU libtool documentation states to start with a version of 0:0:0, rather than 1:1:0. Illumos uses the name libzfs_core.so.1, so to be consistent, we should go with 1:0:0. http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info The GNU libtool documentation also provides guidence on how the version information should be incremented. Doing this does a SONAME bump of the libzfs and libzpool libraries. This is particularly important on Gentoo because a SONAME bump enables portage to retain the older libraries until any packages that link to them are rebuilt. The main example of this is GRUB2's grub2-mkconfig, which will break unless it is rebuilt against the new libraries. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Issue #1751 --- lib/libzfs/Makefile.am | 2 +- lib/libzfs_core/Makefile.am | 2 +- lib/libzpool/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am index 75f1775a2..8b1f51782 100644 --- a/lib/libzfs/Makefile.am +++ b/lib/libzfs/Makefile.am @@ -28,4 +28,4 @@ libzfs_la_LIBADD = \ $(top_builddir)/lib/libzpool/libzpool.la libzfs_la_LIBADD += -lm -ldl $(LIBBLKID) -libzfs_la_LDFLAGS = -version-info 1:1:0 +libzfs_la_LDFLAGS = -version-info 2:0:0 diff --git a/lib/libzfs_core/Makefile.am b/lib/libzfs_core/Makefile.am index d8e2061ac..0ecd2085c 100644 --- a/lib/libzfs_core/Makefile.am +++ b/lib/libzfs_core/Makefile.am @@ -12,4 +12,4 @@ libzfs_core_la_SOURCES = \ libzfs_core_la_LIBADD = \ $(top_builddir)/lib/libnvpair/libnvpair.la -libzfs_core_la_LDFLAGS = -version-info 1:1:0 +libzfs_core_la_LDFLAGS = -version-info 1:0:0 diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 32221694a..da81659d2 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -100,7 +100,7 @@ libzpool_la_LIBADD = \ $(top_builddir)/lib/libnvpair/libnvpair.la libzpool_la_LIBADD += $(ZLIB) -libzpool_la_LDFLAGS = -version-info 1:1:0 +libzpool_la_LDFLAGS = -version-info 2:0:0 EXTRA_DIST = \ $(top_srcdir)/module/zfs/vdev_disk.c \ -- cgit v1.2.3