buildsys: change verify macOS platform condition

to support cross-compile for Android on macOS

Fixes #147
This commit is contained in:
leleliu008 2022-01-02 01:47:19 +08:00 committed by Eric Biggers
parent 6ca065f9f8
commit 52b61d98d8

View File

@ -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