Skip to content

Commit

Permalink
Add API version to library and pkgconfig file for proper linking
Browse files Browse the repository at this point in the history
nikias authored and Martin Szulecki committed Jun 14, 2020
1 parent 6dc79dd commit 7f618a5
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/libideviceactivation-1.0.pc.in
Original file line number Diff line number Diff line change
@@ -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@
2 changes: 1 addition & 1 deletion tools/Makefile.am
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f618a5

Please sign in to comment.