Jan Engelhardt
5d4ebc6b57
hashcat 6.2.6 OBS-URL: https://build.opensuse.org/request/show/1085354 OBS-URL: https://build.opensuse.org/package/show/security/hashcat?expand=0&rev=23
84 lines
2.1 KiB
Diff
84 lines
2.1 KiB
Diff
---
|
|
src/Makefile | 19 ++++++++++---------
|
|
1 file changed, 10 insertions(+), 9 deletions(-)
|
|
|
|
Index: hashcat-6.2.6/src/Makefile
|
|
===================================================================
|
|
--- hashcat-6.2.6.orig/src/Makefile
|
|
+++ hashcat-6.2.6/src/Makefile
|
|
@@ -3,17 +3,17 @@
|
|
## License.....: MIT
|
|
##
|
|
|
|
-SHARED ?= 0
|
|
+SHARED ?= 1
|
|
DEBUG := 0
|
|
PRODUCTION := 1
|
|
PRODUCTION_VERSION := v6.2.6
|
|
ENABLE_CUBIN ?= 1
|
|
ENABLE_BRAIN ?= 1
|
|
ENABLE_UNRAR ?= 1
|
|
-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
|
|
## do not change, requires some hacks
|
|
USE_SYSTEM_UNRAR ?= 0
|
|
|
|
@@ -102,7 +102,7 @@ VERSION_PURE := $(shell echo
|
|
##
|
|
|
|
DESTDIR ?=
|
|
-PREFIX ?= /usr/local
|
|
+PREFIX ?= /usr
|
|
|
|
INSTALL_FOLDER ?= $(PREFIX)/bin
|
|
SHARED_ROOT_FOLDER ?= $(PREFIX)/share
|
|
@@ -119,7 +119,7 @@ LIBRARY_DEV_FOLDER ?= $(LIBRARY_DEV
|
|
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)
|
|
@@ -173,7 +173,7 @@ endif # MSYS2
|
|
## Misc stuff
|
|
##
|
|
|
|
-COMPTIME := $(shell date +%s)
|
|
+COMPTIME := 0
|
|
|
|
##
|
|
## General compiler and linker options
|
|
@@ -181,6 +181,7 @@ COMPTIME := $(shell date
|
|
|
|
LFLAGS := $(LDFLAGS)
|
|
|
|
+CFLAGS += $(our_CFLAGS)
|
|
ifeq ($(PRODUCTION),0)
|
|
CFLAGS += -W
|
|
CFLAGS += -Wall
|
|
@@ -235,7 +236,7 @@ endif
|
|
ifeq ($(DEBUG),0)
|
|
CFLAGS += -O2
|
|
ifneq ($(UNAME),Darwin)
|
|
-LFLAGS += -s
|
|
+LFLAGS +=
|
|
endif
|
|
else
|
|
ifeq ($(DEBUG),1)
|
|
@@ -269,7 +270,7 @@ CFLAGS += -pipe -Iinclu
|
|
# LZMA
|
|
CFLAGS += -I$(DEPS_LZMA_PATH)
|
|
ifeq ($(USE_SYSTEM_LZMA),1)
|
|
-LFLAGS += -llzmasdk
|
|
+LFLAGS += -lclzma
|
|
endif
|
|
|
|
# ZLIB
|