From 70e8738d93ebb30a187a5060b26dbe7ae960b76c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 13 Jun 2020 03:56:11 +0200 Subject: Add API version to library and pkgconfig file for proper linking --- src/Makefile.am | 12 ++++++------ src/libimobiledevice-1.0.pc.in | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 9933277..1ef47fc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,10 +21,10 @@ AM_LDFLAGS = \ $(openssl_LIBS) \ $(PTHREAD_LIBS) -lib_LTLIBRARIES = libimobiledevice.la -libimobiledevice_la_LIBADD = $(top_builddir)/common/libinternalcommon.la -libimobiledevice_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined -libimobiledevice_la_SOURCES = \ +lib_LTLIBRARIES = libimobiledevice-1.0.la +libimobiledevice_1_0_la_LIBADD = $(top_builddir)/common/libinternalcommon.la +libimobiledevice_1_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined +libimobiledevice_1_0_la_SOURCES = \ idevice.c idevice.h \ service.c service.h \ property_list_service.c property_list_service.h \ @@ -53,8 +53,8 @@ libimobiledevice_la_SOURCES = \ syslog_relay.c syslog_relay.h if WIN32 -libimobiledevice_la_LDFLAGS += -avoid-version -static-libgcc -libimobiledevice_la_LIBADD += -lole32 -lws2_32 -lgdi32 +libimobiledevice_1_0_la_LDFLAGS += -avoid-version -static-libgcc +libimobiledevice_1_0_la_LIBADD += -lole32 -lws2_32 -lgdi32 endif pkgconfigdir = $(libdir)/pkgconfig diff --git a/src/libimobiledevice-1.0.pc.in b/src/libimobiledevice-1.0.pc.in index 023ce54..c37654b 100644 --- a/src/libimobiledevice-1.0.pc.in +++ b/src/libimobiledevice-1.0.pc.in @@ -6,7 +6,7 @@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: A library to communicate with services running on Apple iOS devices. Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -limobiledevice +Libs: -L${libdir} -limobiledevice-1.0 Cflags: -I${includedir} Requires: libplist-2.0 >= @LIBPLIST_VERSION@ Requires.private: libusbmuxd-2.0 >= @LIBUSBMUXD_VERSION@ @ssl_requires@ -- cgit v1.1-32-gdbae