diff options
author | Martin Szulecki | 2020-06-12 19:06:57 +0200 |
---|---|---|
committer | Martin Szulecki | 2020-06-14 22:21:04 +0200 |
commit | 01752b5dcb825910f802344b70d22c7a708ac33d (patch) | |
tree | ca6ef74d8c55bf6533d710b00ab73ed4f9a7a2bb | |
parent | 27ff99b5eef881775ec669baad5ab670d7ff9fa4 (diff) | |
download | libirecovery-01752b5dcb825910f802344b70d22c7a708ac33d.tar.gz libirecovery-01752b5dcb825910f802344b70d22c7a708ac33d.tar.bz2 |
Add API version to library and pkgconfig file for proper linking
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/libirecovery-1.0.pc.in | 2 | ||||
-rw-r--r-- | 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 |