[gnome-autoar/wip/lantw/autoar-0.2: 2/3] general: Use libtool version info to provide soname
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar/wip/lantw/autoar-0.2: 2/3] general: Use libtool version info to provide soname
- Date: Mon, 16 Jan 2017 19:57:41 +0000 (UTC)
commit 869e675aeabaa461f8d835a0f202be40025eb65a
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Jan 16 06:16:58 2017 +0800
general: Use libtool version info to provide soname
The libtool version info is calculated in configure script, but the
commit that added code for calculation didn't really use it. Although
soname doesn't provide much useful functionality becayse we already
have API versioning and , we still add -version-info to LDFLAGS for all
libraries in this module.
Makefile.am | 6 ++++++
configure.ac | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e2b8c0e..6fa210f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -81,6 +81,9 @@ gnome_autoar_libgnome_autoar_@API_VERSION@_la_CFLAGS = \
-I$(top_builddir)/gnome-autoar \
$(AM_CFLAGS) \
$(NULL)
+gnome_autoar_libgnome_autoar_@API_VERSION@_la_LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
+ $(NULL)
gnome_autoar_libgnome_autoar_@API_VERSION@_la_LIBADD = \
$(GIO_LIBS) \
$(LIBARCHIVE_LIBS) \
@@ -110,6 +113,9 @@ gnome_autoar_libgnome_autoar_gtk_@API_VERSION@_la_CFLAGS = \
-I$(top_builddir)/gnome-autoar \
$(AM_CFLAGS) \
$(NULL)
+gnome_autoar_libgnome_autoar_gtk_@API_VERSION@_la_LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
+ $(NULL)
gnome_autoar_libgnome_autoar_gtk_@API_VERSION@_la_LIBADD = \
$(GTK_LIBS) \
$(top_builddir)/gnome-autoar/libgnome-autoar-@API_VERSION@.la \
diff --git a/configure.ac b/configure.ac
index 060aa90..2298e68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,7 +29,7 @@ m4_define([lt_current], [m4_eval(binary_age - interface_age)])
m4_define([lt_revision], [interface_age])
m4_define([lt_age], [m4_eval(binary_age - interface_age)])
-AC_SUBST([LIBGNOME_AUTOAR_LT_VERSION], [lt_current:lt_revision:lt_age])
+AC_SUBST([LT_VERSION_INFO], [lt_current:lt_revision:lt_age])
AC_SUBST([API_VERSION], [0.2])
AC_SUBST([API_VERSION_U], [AS_TR_SH([$API_VERSION])])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]