From a12677542c84457b4e077acad80d699b39d8ec5e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 5 Oct 2016 08:44:05 +0200 Subject: Fixed the version in libgnutls-openssl.def file Previously the version set in that file would have been (incorrectly) equal to the version of the main library. --- extra/Makefile.am | 6 +++--- m4/hooks.m4 | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extra/Makefile.am b/extra/Makefile.am index f9716e62c7..601bbae5aa 100644 --- a/extra/Makefile.am +++ b/extra/Makefile.am @@ -68,9 +68,9 @@ libgnutls_openssl_la_LIBADD += $(LIBSOCKET) if HAVE_LD_OUTPUT_DEF libgnutls_openssl_la_LDFLAGS += \ - -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def -libgnutls-openssl-$(DLL_VERSION).def: libgnutls-openssl.la -defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def + -Wl,--output-def,libgnutls-openssl-$(DLL_SSL_VERSION).def +libgnutls-openssl-$(DLL_SSL_VERSION).def: libgnutls-openssl.la +defexec_DATA += libgnutls-openssl-$(DLL_SSL_VERSION).def endif endif diff --git a/m4/hooks.m4 b/m4/hooks.m4 index 925e43d1fd..1eba984402 100644 --- a/m4/hooks.m4 +++ b/m4/hooks.m4 @@ -64,6 +64,8 @@ AC_DEFUN([LIBGNUTLS_HOOKS], # Used when creating the Windows libgnutls-XX.def files. DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}` AC_SUBST(DLL_VERSION) + DLL_SSL_VERSION=`expr ${LT_SSL_CURRENT} - ${LT_SSL_AGE}` + AC_SUBST(DLL_SSL_VERSION) PKG_CHECK_MODULES(NETTLE, [nettle >= 3.1], [cryptolib="nettle"], [ AC_MSG_ERROR([[ -- cgit v1.2.1