From d192c5bd32736fde0080d756de6221287af34891 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Mon, 4 Oct 2010 18:45:18 +0100 Subject: [PATCH] Update libtool version info With input from various people on the mailing list, update the libtool versioning info and start to update this on every release. The next libusb release will not need a change here. All following ones will. --- configure.ac | 19 +++++++++++-------- libusb/Makefile.am | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 84c361d..38e9ce7 100644 --- a/configure.ac +++ b/configure.ac @@ -2,11 +2,22 @@ m4_define(LIBUSB_MAJOR, [1]) m4_define(LIBUSB_MINOR, [0]) m4_define(LIBUSB_MICRO, [8]) +# Library versioning +# These numbers should be tweaked on every release. Read carefully: +# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html +# http://sourceware.org/autobook/autobook/autobook_91.html +lt_current="1" +lt_revision="0" +lt_age="1" + AC_INIT([libusb], LIBUSB_MAJOR.LIBUSB_MINOR.LIBUSB_MICRO, [libusb-devel@lists.sourceforge.net], [libusb], [http://www.libusb.org/]) AC_SUBST([LIBUSB_VERSION_MAJOR], [LIBUSB_MAJOR]) AC_SUBST([LIBUSB_VERSION_MINOR], [LIBUSB_MINOR]) AC_SUBST([LIBUSB_VERSION_MICRO], [LIBUSB_MICRO]) +AC_SUBST(lt_current) +AC_SUBST(lt_revision) +AC_SUBST(lt_age) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([libusb/core.c]) @@ -78,14 +89,6 @@ AM_CONDITIONAL([OS_DARWIN], [test "x$backend" = "xdarwin"]) AM_CONDITIONAL([OS_WINDOWS], [test "x$backend" = "xwindows"]) AM_CONDITIONAL([THREADS_POSIX], [test "x$threads" = "xposix"]) -# Library versioning -lt_major="0" -lt_revision="0" -lt_age="0" -AC_SUBST(lt_major) -AC_SUBST(lt_revision) -AC_SUBST(lt_age) - # timerfd AC_CHECK_HEADER([sys/timerfd.h], [timerfd_h=1], [timerfd_h=0]) AC_ARG_ENABLE([timerfd], diff --git a/libusb/Makefile.am b/libusb/Makefile.am index 879a3f7..25c36bb 100644 --- a/libusb/Makefile.am +++ b/libusb/Makefile.am @@ -28,6 +28,7 @@ endif endif libusb_1_0_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) $(THREAD_CFLAGS) +libusb_1_0_la_LDFLAGS = -version-info $(lt_current):$(lt_revision):$(lt_age) libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) \ os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h \ os/threads_posix.h os/threads_windows.h \ -- 2.7.4