summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/lz4/patches/patch-lib_Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/lz4/patches/patch-lib_Makefile b/package/lz4/patches/patch-lib_Makefile
new file mode 100644
index 000000000..9b883d267
--- /dev/null
+++ b/package/lz4/patches/patch-lib_Makefile
@@ -0,0 +1,19 @@
+--- lz4-1.8.2.orig/lib/Makefile 2018-05-07 23:38:45.000000000 +0200
++++ lz4-1.8.2/lib/Makefile 2018-05-22 20:22:31.000000000 +0200
+@@ -45,6 +45,7 @@ LIBVER := $(shell echo $(LIBVER_SCRIPT)
+ BUILD_SHARED:=yes
+ BUILD_STATIC:=yes
+
++OS?=$(shell uname)
+ CPPFLAGS+= -DXXH_NAMESPACE=LZ4_
+ CFLAGS ?= -O3
+ DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
+@@ -58,7 +59,7 @@ SRCFILES := $(sort $(wildcard *.c))
+
+ # OS X linker doesn't support -soname, and use different extension
+ # see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
+-ifeq ($(shell uname), Darwin)
++ifeq ($(OS), Darwin)
+ SHARED_EXT = dylib
+ SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
+ SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)