From 01752b5dcb825910f802344b70d22c7a708ac33d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 12 Jun 2020 19:06:57 +0200 Subject: Add API version to library and pkgconfig file for proper linking --- src/Makefile.am | 10 +++++----- src/libirecovery-1.0.pc.in | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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@ -- cgit v1.1-32-gdbae