summaryrefslogtreecommitdiffstats
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
parent66d606871079d588316c5374bdd288225cc4df48 (diff)
downloadlibimobiledevice-70e8738d93ebb30a187a5060b26dbe7ae960b76c.tar.gz
libimobiledevice-70e8738d93ebb30a187a5060b26dbe7ae960b76c.tar.bz2
Add API version to library and pkgconfig file for proper linking
-rw-r--r--src/Makefile.am12
-rw-r--r--src/libimobiledevice-1.0.pc.in2
-rw-r--r--tools/Makefile.am36
3 files changed, 25 insertions, 25 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 = \
21 $(openssl_LIBS) \ 21 $(openssl_LIBS) \
22 $(PTHREAD_LIBS) 22 $(PTHREAD_LIBS)
23 23
24lib_LTLIBRARIES = libimobiledevice.la 24lib_LTLIBRARIES = libimobiledevice-1.0.la
25libimobiledevice_la_LIBADD = $(top_builddir)/common/libinternalcommon.la 25libimobiledevice_1_0_la_LIBADD = $(top_builddir)/common/libinternalcommon.la
26libimobiledevice_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined 26libimobiledevice_1_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined
27libimobiledevice_la_SOURCES = \ 27libimobiledevice_1_0_la_SOURCES = \
28 idevice.c idevice.h \ 28 idevice.c idevice.h \
29 service.c service.h \ 29 service.c service.h \
30 property_list_service.c property_list_service.h \ 30 property_list_service.c property_list_service.h \
@@ -53,8 +53,8 @@ libimobiledevice_la_SOURCES = \
53 syslog_relay.c syslog_relay.h 53 syslog_relay.c syslog_relay.h
54 54
55if WIN32 55if WIN32
56libimobiledevice_la_LDFLAGS += -avoid-version -static-libgcc 56libimobiledevice_1_0_la_LDFLAGS += -avoid-version -static-libgcc
57libimobiledevice_la_LIBADD += -lole32 -lws2_32 -lgdi32 57libimobiledevice_1_0_la_LIBADD += -lole32 -lws2_32 -lgdi32
58endif 58endif
59 59
60pkgconfigdir = $(libdir)/pkgconfig 60pkgconfigdir = $(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@
6Name: @PACKAGE_NAME@ 6Name: @PACKAGE_NAME@
7Description: A library to communicate with services running on Apple iOS devices. 7Description: A library to communicate with services running on Apple iOS devices.
8Version: @PACKAGE_VERSION@ 8Version: @PACKAGE_VERSION@
9Libs: -L${libdir} -limobiledevice 9Libs: -L${libdir} -limobiledevice-1.0
10Cflags: -I${includedir} 10Cflags: -I${includedir}
11Requires: libplist-2.0 >= @LIBPLIST_VERSION@ 11Requires: libplist-2.0 >= @LIBPLIST_VERSION@
12Requires.private: libusbmuxd-2.0 >= @LIBUSBMUXD_VERSION@ @ssl_requires@ 12Requires.private: libusbmuxd-2.0 >= @LIBUSBMUXD_VERSION@ @ssl_requires@
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 7e6487f..8ed8ad9 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -41,89 +41,89 @@ bin_PROGRAMS = \
41ideviceinfo_SOURCES = ideviceinfo.c 41ideviceinfo_SOURCES = ideviceinfo.c
42ideviceinfo_CFLAGS = $(AM_CFLAGS) 42ideviceinfo_CFLAGS = $(AM_CFLAGS)
43ideviceinfo_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 43ideviceinfo_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
44ideviceinfo_LDADD = $(top_builddir)/src/libimobiledevice.la 44ideviceinfo_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
45 45
46idevicename_SOURCES = idevicename.c 46idevicename_SOURCES = idevicename.c
47idevicename_CFLAGS = $(AM_CFLAGS) 47idevicename_CFLAGS = $(AM_CFLAGS)
48idevicename_LDFLAGS = $(AM_LDFLAGS) 48idevicename_LDFLAGS = $(AM_LDFLAGS)
49idevicename_LDADD = $(top_builddir)/src/libimobiledevice.la 49idevicename_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
50 50
51idevicepair_SOURCES = idevicepair.c 51idevicepair_SOURCES = idevicepair.c
52idevicepair_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) 52idevicepair_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
53idevicepair_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) $(libusbmuxd_LIBS) 53idevicepair_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) $(libusbmuxd_LIBS)
54idevicepair_LDADD = $(top_builddir)/src/libimobiledevice.la 54idevicepair_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
55 55
56idevicesyslog_SOURCES = idevicesyslog.c 56idevicesyslog_SOURCES = idevicesyslog.c
57idevicesyslog_CFLAGS = $(AM_CFLAGS) 57idevicesyslog_CFLAGS = $(AM_CFLAGS)
58idevicesyslog_LDFLAGS = $(AM_LDFLAGS) 58idevicesyslog_LDFLAGS = $(AM_LDFLAGS)
59idevicesyslog_LDADD = $(top_builddir)/src/libimobiledevice.la 59idevicesyslog_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
60 60
61idevice_id_SOURCES = idevice_id.c 61idevice_id_SOURCES = idevice_id.c
62idevice_id_CFLAGS = $(AM_CFLAGS) 62idevice_id_CFLAGS = $(AM_CFLAGS)
63idevice_id_LDFLAGS = $(AM_LDFLAGS) 63idevice_id_LDFLAGS = $(AM_LDFLAGS)
64idevice_id_LDADD = $(top_builddir)/src/libimobiledevice.la 64idevice_id_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
65 65
66idevicebackup_SOURCES = idevicebackup.c 66idevicebackup_SOURCES = idevicebackup.c
67idevicebackup_CFLAGS = $(AM_CFLAGS) 67idevicebackup_CFLAGS = $(AM_CFLAGS)
68idevicebackup_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 68idevicebackup_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
69idevicebackup_LDADD = $(top_builddir)/src/libimobiledevice.la 69idevicebackup_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
70 70
71idevicebackup2_SOURCES = idevicebackup2.c 71idevicebackup2_SOURCES = idevicebackup2.c
72idevicebackup2_CFLAGS = $(AM_CFLAGS) 72idevicebackup2_CFLAGS = $(AM_CFLAGS)
73idevicebackup2_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 73idevicebackup2_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
74idevicebackup2_LDADD = $(top_builddir)/src/libimobiledevice.la 74idevicebackup2_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
75 75
76ideviceimagemounter_SOURCES = ideviceimagemounter.c 76ideviceimagemounter_SOURCES = ideviceimagemounter.c
77ideviceimagemounter_CFLAGS = $(AM_CFLAGS) 77ideviceimagemounter_CFLAGS = $(AM_CFLAGS)
78ideviceimagemounter_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 78ideviceimagemounter_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
79ideviceimagemounter_LDADD = $(top_builddir)/src/libimobiledevice.la 79ideviceimagemounter_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
80 80
81idevicescreenshot_SOURCES = idevicescreenshot.c 81idevicescreenshot_SOURCES = idevicescreenshot.c
82idevicescreenshot_CFLAGS = $(AM_CFLAGS) 82idevicescreenshot_CFLAGS = $(AM_CFLAGS)
83idevicescreenshot_LDFLAGS = $(AM_LDFLAGS) 83idevicescreenshot_LDFLAGS = $(AM_LDFLAGS)
84idevicescreenshot_LDADD = $(top_builddir)/src/libimobiledevice.la 84idevicescreenshot_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
85 85
86ideviceenterrecovery_SOURCES = ideviceenterrecovery.c 86ideviceenterrecovery_SOURCES = ideviceenterrecovery.c
87ideviceenterrecovery_CFLAGS = $(AM_CFLAGS) 87ideviceenterrecovery_CFLAGS = $(AM_CFLAGS)
88ideviceenterrecovery_LDFLAGS = $(AM_LDFLAGS) 88ideviceenterrecovery_LDFLAGS = $(AM_LDFLAGS)
89ideviceenterrecovery_LDADD = $(top_builddir)/src/libimobiledevice.la 89ideviceenterrecovery_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
90 90
91idevicedate_SOURCES = idevicedate.c 91idevicedate_SOURCES = idevicedate.c
92idevicedate_CFLAGS = $(AM_CFLAGS) 92idevicedate_CFLAGS = $(AM_CFLAGS)
93idevicedate_LDFLAGS = $(AM_LDFLAGS) 93idevicedate_LDFLAGS = $(AM_LDFLAGS)
94idevicedate_LDADD = $(top_builddir)/src/libimobiledevice.la 94idevicedate_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
95 95
96ideviceprovision_SOURCES = ideviceprovision.c 96ideviceprovision_SOURCES = ideviceprovision.c
97ideviceprovision_CFLAGS = $(AM_CFLAGS) 97ideviceprovision_CFLAGS = $(AM_CFLAGS)
98ideviceprovision_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 98ideviceprovision_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
99ideviceprovision_LDADD = $(top_builddir)/src/libimobiledevice.la 99ideviceprovision_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
100 100
101idevicedebugserverproxy_SOURCES = idevicedebugserverproxy.c 101idevicedebugserverproxy_SOURCES = idevicedebugserverproxy.c
102idevicedebugserverproxy_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) 102idevicedebugserverproxy_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
103idevicedebugserverproxy_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 103idevicedebugserverproxy_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
104idevicedebugserverproxy_LDADD = $(top_builddir)/src/libimobiledevice.la 104idevicedebugserverproxy_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
105 105
106idevicediagnostics_SOURCES = idevicediagnostics.c 106idevicediagnostics_SOURCES = idevicediagnostics.c
107idevicediagnostics_CFLAGS = $(AM_CFLAGS) 107idevicediagnostics_CFLAGS = $(AM_CFLAGS)
108idevicediagnostics_LDFLAGS = $(AM_LDFLAGS) 108idevicediagnostics_LDFLAGS = $(AM_LDFLAGS)
109idevicediagnostics_LDADD = $(top_builddir)/src/libimobiledevice.la 109idevicediagnostics_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
110 110
111idevicedebug_SOURCES = idevicedebug.c 111idevicedebug_SOURCES = idevicedebug.c
112idevicedebug_CFLAGS = $(AM_CFLAGS) 112idevicedebug_CFLAGS = $(AM_CFLAGS)
113idevicedebug_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 113idevicedebug_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
114idevicedebug_LDADD = $(top_builddir)/src/libimobiledevice.la 114idevicedebug_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
115 115
116idevicenotificationproxy_SOURCES = idevicenotificationproxy.c 116idevicenotificationproxy_SOURCES = idevicenotificationproxy.c
117idevicenotificationproxy_CFLAGS = $(AM_CFLAGS) 117idevicenotificationproxy_CFLAGS = $(AM_CFLAGS)
118idevicenotificationproxy_LDFLAGS = $(AM_LDFLAGS) 118idevicenotificationproxy_LDFLAGS = $(AM_LDFLAGS)
119idevicenotificationproxy_LDADD = $(top_builddir)/src/libimobiledevice.la 119idevicenotificationproxy_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
120 120
121idevicecrashreport_SOURCES = idevicecrashreport.c 121idevicecrashreport_SOURCES = idevicecrashreport.c
122idevicecrashreport_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) 122idevicecrashreport_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
123idevicecrashreport_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 123idevicecrashreport_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
124idevicecrashreport_LDADD = $(top_builddir)/src/libimobiledevice.la 124idevicecrashreport_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la
125 125
126idevicesetlocation_SOURCES = idevicesetlocation.c 126idevicesetlocation_SOURCES = idevicesetlocation.c
127idevicesetlocation_CFLAGS = $(AM_CFLAGS) 127idevicesetlocation_CFLAGS = $(AM_CFLAGS)
128idevicesetlocation_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) 128idevicesetlocation_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS)
129idevicesetlocation_LDADD = $(top_builddir)/src/libimobiledevice.la 129idevicesetlocation_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la