Ticket #49880: patch-patch-Makefile.diff

File patch-patch-Makefile.diff, 1.1 KB (added by ron.pinz@…, 9 years ago)

patch for the port patch-Makefile.diff

  • Makefile

    a b EXT = dylib 
    247 IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d " ")
     247IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep -e __apple_build_version__ -e __APPLE_CC__ | wc -l | tr -d " ")
    248248ifeq ($(IS_APPLE),1)
    249249EXT = dylib
    250250VERSION_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)
    252252AR_EXT = a
    253 # Homebrew wants to make sure its formula does not disable FORTIFY_SOURCE
    254 # However, this is not really necessary because 'CAPSTONE_USE_SYS_DYN_MEM=yes' by default
    255 ifneq ($(HOMEBREW_CAPSTONE),1)
    256 ifneq ($(CAPSTONE_USE_SYS_DYN_MEM),yes)
    257 # remove string check because OSX kernel complains about missing symbols
    258 CFLAGS += -D_FORTIFY_SOURCE=0
    259 endif
    260 endif
    261253else