mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge pull request #3142 from matrix/appleSilicon_universalBinary
Added support to building Universal macOS binary on Apple Silicon
This commit is contained in:
commit
b8a2853be0
@ -16,6 +16,7 @@
|
||||
- Added support to use --debug-mode in attack-mode 9 (Association Attack)
|
||||
- Added guess data to --status-json output
|
||||
- Added hex format for --separator option
|
||||
- Added support to building Universal macOS binary on Apple Silicon
|
||||
|
||||
##
|
||||
## Bugs
|
||||
|
@ -23,6 +23,7 @@ Gabriele "matrix" Gristina <matrix@hashcat.net> (@gm4tr1x)
|
||||
* OpenCL Info feature
|
||||
* Apple macOS port
|
||||
* Apple Silicon support
|
||||
* Universal binary on Apple Silicon
|
||||
* Hardware monitor initial code base and maintenance
|
||||
* Test suite initial code base and maintenance
|
||||
* Makefile initial code base
|
||||
|
13
src/Makefile
13
src/Makefile
@ -36,7 +36,7 @@ $(error "! Your Operating System ($(UNAME)) is not supported by this Makefile")
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
$(warning "## Detected Operating System : $(UNAME)")
|
||||
$(info "## Detected Operating System : $(UNAME)")
|
||||
endif
|
||||
|
||||
##
|
||||
@ -76,6 +76,7 @@ AR := /usr/bin/ar
|
||||
SED := /usr/bin/sed
|
||||
SED_IN_PLACE := -i ""
|
||||
DARWIN_VERSION := $(shell uname -r | cut -d. -f1)
|
||||
IS_APPLE_SILICON := $(shell lipo /bin/zsh -verify_arch arm64e && echo 1 || echo 0)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(UNAME),FreeBSD NetBSD))
|
||||
@ -333,6 +334,16 @@ LFLAGS_NATIVE := $(LFLAGS)
|
||||
LFLAGS_NATIVE += -framework IOKit
|
||||
LFLAGS_NATIVE += -lpthread
|
||||
LFLAGS_NATIVE += -liconv
|
||||
|
||||
ifeq ($(IS_APPLE_SILICON),1)
|
||||
CFLAGS_NATIVE += -arch arm64
|
||||
CFLAGS_NATIVE += -arch x86_64
|
||||
ifeq ($(SHARED),1)
|
||||
LFLAGS_NATIVE += -arch arm64
|
||||
LFLAGS_NATIVE += -arch x86_64
|
||||
endif
|
||||
endif
|
||||
|
||||
endif # Darwin
|
||||
|
||||
ifeq ($(UNAME),CYGWIN)
|
||||
|
Loading…
Reference in New Issue
Block a user