Ticket #49880: patch-patch-Makefile.diff
File patch-patch-Makefile.diff, 1.1 KB (added by ron.pinz@…, 9 years ago) |
---|
-
Makefile
a b EXT = dylib 247 IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d " ")247 IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep -e __apple_build_version__ -e __APPLE_CC__ | wc -l | tr -d " ") 248 248 ifeq ($(IS_APPLE),1) 249 249 EXT = dylib 250 250 VERSION_EXT = $(API_MAJOR).$(EXT) 251 $(LIBNAME)_LDFLAGS += -dynamiclib -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR)251 $(LIBNAME)_LDFLAGS += -dynamiclib -install_name $(PREFIX)/lib/lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR) 252 252 AR_EXT = a 253 # Homebrew wants to make sure its formula does not disable FORTIFY_SOURCE254 # However, this is not really necessary because 'CAPSTONE_USE_SYS_DYN_MEM=yes' by default255 ifneq ($(HOMEBREW_CAPSTONE),1)256 ifneq ($(CAPSTONE_USE_SYS_DYN_MEM),yes)257 # remove string check because OSX kernel complains about missing symbols258 CFLAGS += -D_FORTIFY_SOURCE=0259 endif260 endif261 253 else