From 52b61d98d8b7ae58b17871862dd42765832a0d5a Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Sun, 2 Jan 2022 01:47:19 +0800 Subject: [PATCH] buildsys: change verify macOS platform condition to support cross-compile for Android on macOS Fixes #147 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 780d99f..abc22ab 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ ifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),) endif # macOS? -else ifeq ($(shell uname),Darwin) +else ifneq ($(findstring -darwin,$(shell $(CC) -dumpmachine 2>/dev/null)),) SHARED_LIB := libdeflate.$(SOVERSION).dylib SHARED_LIB_SYMLINK := libdeflate.dylib SHARED_LIB_CFLAGS := -fPIC