mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-03-04 04:17:46 +00:00
Makefile: add a check for Brew compilation environment (HOMEBREW_CAPSTONE=1)
This commit is contained in:
parent
7626808de6
commit
189e83a486
2
Makefile
2
Makefile
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user