support building on OSX 10.6.8. this fix is ported over from Capstone

This commit is contained in:
Nguyen Anh Quynh 2015-12-20 10:00:34 +08:00
parent 0d668d57e7
commit 203876d4f6

View file

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