From 7f618a50bc3ddafbe38559b39d10e7af96765872 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 13 Jun 2020 03:48:31 +0200 Subject: Add API version to library and pkgconfig file for proper linking --- src/Makefile.am | 8 ++++---- src/libideviceactivation-1.0.pc.in | 2 +- tools/Makefile.am | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 573049c..4c3faca 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,13 +15,13 @@ AM_LDFLAGS = \ $(libcurl_LIBS) \ $(libxml2_LIBS) -lib_LTLIBRARIES = libideviceactivation.la -libideviceactivation_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIDEVICEACTIVATION_SO_VERSION) -no-undefined -libideviceactivation_la_SOURCES = \ +lib_LTLIBRARIES = libideviceactivation-1.0.la +libideviceactivation_1_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIDEVICEACTIVATION_SO_VERSION) -no-undefined +libideviceactivation_1_0_la_SOURCES = \ activation.c if WIN32 -libideviceactivation_la_LDFLAGS += -avoid-version +libideviceactivation_1_0_la_LDFLAGS += -avoid-version endif pkgconfigdir = $(libdir)/pkgconfig diff --git a/src/libideviceactivation-1.0.pc.in b/src/libideviceactivation-1.0.pc.in index 27bb950..d15b4d7 100644 --- a/src/libideviceactivation-1.0.pc.in +++ b/src/libideviceactivation-1.0.pc.in @@ -6,7 +6,7 @@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: A library to handle activation and deactivation of iOS devices. Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lideviceactivation +Libs: -L${libdir} -lideviceactivation-1.0 Cflags: -I${includedir} Requires: libplist-2.0 >= @LIBPLIST_VERSION@ libimobiledevice-1.0 >= @LIBIMOBILEDEVICE_VERSION@ Requires.private: libcurl >= @LIBCURL_VERSION@ libxml-2.0 >= @LIBXML2_VERSION@ diff --git a/tools/Makefile.am b/tools/Makefile.am index e04c66b..f440a08 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -16,4 +16,4 @@ bin_PROGRAMS = ideviceactivation ideviceactivation_SOURCES = ideviceactivation.c ideviceactivation_CFLAGS = $(AM_CFLAGS) ideviceactivation_LDFLAGS = $(AM_LDFLAGS) -ideviceactivation_LDADD = $(top_builddir)/src/libideviceactivation.la +ideviceactivation_LDADD = $(top_builddir)/src/libideviceactivation-1.0.la -- cgit v1.1-32-gdbae