Makefile: add a check for Brew compilation environment (HOMEBREW_CAPSTONE=1)
diff --git a/Makefile b/Makefile
index 09bbfa5..75bd53b 100644
--- a/Makefile
+++ b/Makefile
@@ -204,6 +204,7 @@
#LDFLAGS += -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(API_MAJOR) -compatibility_version $(API_MAJOR)
LDFLAGS += -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(API_MAJOR).1 -compatibility_version $(API_MAJOR).1
AR_EXT = a
+ifneq ($(HOMEBREW_CAPSTONE),1)
ifneq ($(USE_SYS_DYN_MEM),yes)
# remove string check because OSX kernel complains about missing symbols
CFLAGS += -D_FORTIFY_SOURCE=0
@@ -215,6 +216,7 @@
# then correct the path for pkgconfig file
PKGCFCGDIR = /opt/local/lib/pkgconfig
endif
+endif
else
# Cygwin?
IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)