mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-22 13:40:56 +00:00
Merge pull request #2677 from RAN1/darwin_version
Makefile: Check Darwin major version instead of macOS minor version
This commit is contained in:
commit
1976118b83
@ -74,7 +74,7 @@ CXX := clang++
|
||||
AR := /usr/bin/ar
|
||||
SED := /usr/bin/sed
|
||||
SED_IN_PLACE := -i ""
|
||||
PROD_VERS := $(shell sw_vers -productVersion | cut -d. -f2)
|
||||
DARWIN_VERSION := $(shell uname -r | cut -d. -f1)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME),FreeBSD)
|
||||
@ -299,7 +299,7 @@ ifeq ($(UNAME),Darwin)
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
CFLAGS_NATIVE := $(CFLAGS)
|
||||
|
||||
ifeq ($(shell test $(PROD_VERS) -le 11; echo $$?), 0)
|
||||
ifeq ($(shell test $(DARWIN_VERSION) -le 15; echo $$?), 0)
|
||||
CFLAGS_NATIVE += -DMISSING_CLOCK_GETTIME
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user