2021-05-15 16:18:24 +02:00
|
|
|
---
|
|
|
|
src/Makefile | 19 ++++++++++---------
|
|
|
|
1 file changed, 10 insertions(+), 9 deletions(-)
|
|
|
|
|
|
|
|
Index: hashcat-6.2.1/src/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- hashcat-6.2.1.orig/src/Makefile
|
|
|
|
+++ hashcat-6.2.1/src/Makefile
|
|
|
|
@@ -3,17 +3,17 @@
|
2020-09-08 13:23:33 +02:00
|
|
|
## License.....: MIT
|
|
|
|
##
|
|
|
|
|
|
|
|
-SHARED ?= 0
|
|
|
|
+SHARED ?= 1
|
|
|
|
DEBUG := 0
|
|
|
|
PRODUCTION := 1
|
2021-05-15 16:18:24 +02:00
|
|
|
PRODUCTION_VERSION := v6.2.1
|
2020-09-08 13:23:33 +02:00
|
|
|
ENABLE_CUBIN ?= 1
|
|
|
|
ENABLE_BRAIN ?= 1
|
2021-05-15 16:18:24 +02:00
|
|
|
ENABLE_UNRAR ?= 1
|
2020-09-08 13:23:33 +02:00
|
|
|
-USE_SYSTEM_LZMA ?= 0
|
|
|
|
-USE_SYSTEM_ZLIB ?= 0
|
|
|
|
+USE_SYSTEM_LZMA ?= 1
|
|
|
|
+USE_SYSTEM_ZLIB ?= 1
|
|
|
|
USE_SYSTEM_OPENCL ?= 0
|
|
|
|
-USE_SYSTEM_XXHASH ?= 0
|
|
|
|
+USE_SYSTEM_XXHASH ?= 1
|
2021-05-14 20:03:11 +02:00
|
|
|
## do not change, requires some hacks
|
|
|
|
USE_SYSTEM_UNRAR ?= 0
|
2020-09-08 13:23:33 +02:00
|
|
|
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -101,7 +101,7 @@ VERSION_PURE := $(shell echo
|
2020-09-08 13:23:33 +02:00
|
|
|
##
|
|
|
|
|
|
|
|
DESTDIR ?=
|
|
|
|
-PREFIX ?= /usr/local
|
|
|
|
+PREFIX ?= /usr
|
|
|
|
|
|
|
|
INSTALL_FOLDER ?= $(PREFIX)/bin
|
|
|
|
SHARED_ROOT_FOLDER ?= $(PREFIX)/share
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -118,7 +118,7 @@ LIBRARY_DEV_FOLDER ?= $(LIBRARY_DEV
|
2020-09-08 13:23:33 +02:00
|
|
|
ifeq ($(USE_SYSTEM_LZMA),0)
|
|
|
|
DEPS_LZMA_PATH := deps/LZMA-SDK/C
|
|
|
|
else
|
|
|
|
-DEPS_LZMA_PATH := $(LIBRARY_DEV_ROOT_FOLDER)
|
|
|
|
+DEPS_LZMA_PATH := /usr/include/clzma
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_SYSTEM_ZLIB),0)
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -172,7 +172,7 @@ endif # MSYS2
|
2020-09-08 13:23:33 +02:00
|
|
|
## Misc stuff
|
|
|
|
##
|
|
|
|
|
|
|
|
-COMPTIME := $(shell date +%s)
|
|
|
|
+COMPTIME := 0
|
|
|
|
|
|
|
|
##
|
|
|
|
## General compiler and linker options
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -180,6 +180,7 @@ COMPTIME := $(shell date
|
2020-09-08 13:23:33 +02:00
|
|
|
|
|
|
|
LFLAGS := $(LDFLAGS)
|
|
|
|
|
|
|
|
+CFLAGS += $(our_CFLAGS)
|
|
|
|
ifeq ($(PRODUCTION),0)
|
|
|
|
CFLAGS += -W
|
|
|
|
CFLAGS += -Wall
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -224,7 +225,7 @@ endif
|
2020-09-08 13:23:33 +02:00
|
|
|
ifeq ($(DEBUG),0)
|
|
|
|
CFLAGS += -O2
|
|
|
|
ifneq ($(UNAME),Darwin)
|
|
|
|
-LFLAGS += -s
|
|
|
|
+LFLAGS +=
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(DEBUG),1)
|
2021-05-15 16:18:24 +02:00
|
|
|
@@ -250,7 +251,7 @@ CFLAGS += -pipe -Iinclu
|
2020-09-08 13:23:33 +02:00
|
|
|
# LZMA
|
|
|
|
CFLAGS += -I$(DEPS_LZMA_PATH)
|
|
|
|
ifeq ($(USE_SYSTEM_LZMA),1)
|
|
|
|
-LFLAGS += -llzmasdk
|
|
|
|
+LFLAGS += -lclzma
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ZLIB
|