2014-11-28 20:13:39 +01:00
From: Jan Engelhardt <jengelh@inai.de>
Date: 2014-11-28 20:01:01.723860722 +0100
2016-04-03 01:56:32 +02:00
References: https://github.com/Cyan4973/lz4/pull/195
2014-11-28 20:13:39 +01:00
2016-04-02 21:30:27 +02:00
lz4 repeatedly changed the ABI without updating the SONAME
in r124 (size of LZ4_streamDecode_t changes)
2014-11-28 20:13:39 +01:00
---
2016-04-02 21:43:04 +02:00
lib/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
2014-11-28 20:13:39 +01:00
2016-04-02 21:30:27 +02:00
Index: lz4-r131/lib/Makefile
2014-11-28 20:13:39 +01:00
===================================================================
2016-04-02 21:30:27 +02:00
--- lz4-r131.orig/lib/Makefile
+++ lz4-r131/lib/Makefile
2016-04-02 21:43:04 +02:00
@@ -50,13 +50,13 @@ INCLUDEDIR=$(PREFIX)/include
2016-04-02 21:30:27 +02:00
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
ifeq ($(shell uname), Darwin)
SHARED_EXT = dylib
- SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
+ SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(LIBVER_MINOR).$(SHARED_EXT)
2014-11-28 20:13:39 +01:00
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
2016-04-02 21:43:04 +02:00
- SONAME_FLAGS = -install_name $(PREFIX)/lib/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
+ SONAME_FLAGS = -install_name $(PREFIX)/lib/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR).$(LIBVER_MINOR) -current_version $(LIBVER)
2014-11-28 20:13:39 +01:00
else
- SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
+ SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR).$(LIBVER_MINOR)
SHARED_EXT = so
2016-04-02 21:43:04 +02:00
- SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
+ SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR).$(LIBVER_MINOR)
2014-11-28 20:13:39 +01:00
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
2016-04-02 21:43:04 +02:00
endif