diff --git a/Makefile b/Makefile index 402e401c..967fb65c 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ VERSION_EXT = BIN_EXT = -IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d " ") +IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep -cm 1 -e __apple_build_version__ -e __APPLE_CC__) ifeq ($(IS_APPLE),1) EXT = dylib VERSION_EXT = $(API_MAJOR).$(EXT)