SHA256
1
0
forked from pool/lz4
Jan Engelhardt 2016-04-02 19:43:04 +00:00 committed by Git OBS Bridge
parent 99d039b750
commit 3f17948b3e

View File

@ -4,24 +4,28 @@ Date: 2014-11-28 20:01:01.723860722 +0100
lz4 repeatedly changed the ABI without updating the SONAME
in r124 (size of LZ4_streamDecode_t changes)
---
lib/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
lib/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: lz4-r131/lib/Makefile
===================================================================
--- lz4-r131.orig/lib/Makefile
+++ lz4-r131/lib/Makefile
@@ -50,11 +50,11 @@ INCLUDEDIR=$(PREFIX)/include
@@ -50,13 +50,13 @@ INCLUDEDIR=$(PREFIX)/include
# 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)
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
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) -current_version $(LIBVER)
+ SONAME_FLAGS = -install_name $(PREFIX)/lib/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR).$(LIBVER_MINOR) -current_version $(LIBVER)
else
- SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
+ SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR).$(LIBVER_MINOR)
SHARED_EXT = so
SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
- SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
+ SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR).$(LIBVER_MINOR)
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
endif