diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2018-06-01 20:43:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2018-06-02 20:11:15 +0200 |
commit | 239226979cd65e4d3e2071ebc7a96d1cd171c59f (patch) | |
tree | 0d5ef66acf91f8cd95158ce68c6a2a34b87106cb /package | |
parent | 33a9c4a0f92abc42efe6c30c6e0dcd7fb1fd3250 (diff) |
lz4: fix Darwin cross-compile
Diffstat (limited to 'package')
-rw-r--r-- | package/lz4/patches/patch-lib_Makefile | 19 |
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) |