summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-12 19:06:57 +0200
committerGravatar Martin Szulecki2020-06-14 22:21:04 +0200
commit01752b5dcb825910f802344b70d22c7a708ac33d (patch)
treeca6ef74d8c55bf6533d710b00ab73ed4f9a7a2bb /src
parent27ff99b5eef881775ec669baad5ab670d7ff9fa4 (diff)
downloadlibirecovery-01752b5dcb825910f802344b70d22c7a708ac33d.tar.gz
libirecovery-01752b5dcb825910f802344b70d22c7a708ac33d.tar.bz2
Add API version to library and pkgconfig file for proper linking
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am10
-rw-r--r--src/libirecovery-1.0.pc.in2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 538c2ca..06a6374 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,16 +9,16 @@ AM_LDFLAGS = \
$(GLOBAL_LDFLAGS) \
$(libusb_LIBS)
-lib_LTLIBRARIES = libirecovery.la
-libirecovery_la_CFLAGS = $(AM_CFLAGS)
-libirecovery_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIRECOVERY_SO_VERSION) -no-undefined
-libirecovery_la_SOURCES = \
+lib_LTLIBRARIES = libirecovery-1.0.la
+libirecovery_1_0_la_CFLAGS = $(AM_CFLAGS)
+libirecovery_1_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIRECOVERY_SO_VERSION) -no-undefined
+libirecovery_1_0_la_SOURCES = \
libirecovery.c \
utils.c utils.h \
thread.c thread.h
if WIN32
-libirecovery_la_LDFLAGS += -avoid-version
+libirecovery_1_0_la_LDFLAGS += -avoid-version
endif
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/src/libirecovery-1.0.pc.in b/src/libirecovery-1.0.pc.in
index 11ac86a..25144da 100644
--- a/src/libirecovery-1.0.pc.in
+++ b/src/libirecovery-1.0.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: @PACKAGE_NAME@
Description: A library to communicate with iBoot/iBSS on iOS devices via USB
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lirecovery
+Libs: -L${libdir} -lirecovery-1.0
Cflags: -I${includedir}
Requires.private: @LIBUSB_REQUIRED@