summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-06-13 03:56:11 +0200
committerGravatar Martin Szulecki2020-06-14 23:36:23 +0200
commit70e8738d93ebb30a187a5060b26dbe7ae960b76c (patch)
tree11e2cc6bc13cff22a37866debb52b094e25c5794 /src
parent66d606871079d588316c5374bdd288225cc4df48 (diff)
downloadlibimobiledevice-70e8738d93ebb30a187a5060b26dbe7ae960b76c.tar.gz
libimobiledevice-70e8738d93ebb30a187a5060b26dbe7ae960b76c.tar.bz2
Add API version to library and pkgconfig file for proper linking
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am12
-rw-r--r--src/libimobiledevice-1.0.pc.in2
2 files changed, 7 insertions, 7 deletions
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@