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 +- tools/Makefile.am | 2 +- 3 files changed, 7 insertions(+), 7 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@ diff --git a/tools/Makefile.am b/tools/Makefile.am index 84e7981..03728b2 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -8,4 +8,4 @@ bin_PROGRAMS = irecovery irecovery_SOURCES = irecovery.c irecovery_CFLAGS = $(AM_CFLAGS) irecovery_LDFLAGS = $(AM_LDFLAGS) -irecovery_LDADD = $(top_builddir)/src/libirecovery.la +irecovery_LDADD = $(top_builddir)/src/libirecovery-1.0.la -- cgit v1.1-32-gdbae