Makefile: add a check for Brew compilation environment (HOMEBREW_CAPSTONE=1)

This commit is contained in:
Nguyen Anh Quynh 2014-03-29 22:36:05 +08:00
parent 7626808de6
commit 189e83a486

View File

@ -204,6 +204,7 @@ VERSION_EXT = $(API_MAJOR).$(EXT)
#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 @@ ifneq (,$(wildcard /opt/local/bin/port))
# 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)