File system-libs.patch of Package hashcat
---
src/Makefile | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
Index: hashcat-7.1.2/src/Makefile
===================================================================
--- hashcat-7.1.2.orig/src/Makefile
+++ hashcat-7.1.2/src/Makefile
@@ -3,17 +3,17 @@
## License.....: MIT
##
-SHARED ?= 0
+SHARED ?= 1
DEBUG := 0
PRODUCTION := 1
PRODUCTION_VERSION := v7.1.2
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
MAINTAINER_MODE ?= 0
@@ -121,7 +121,7 @@ VERSION_PURE := $(shell echo
##
DESTDIR ?=
-PREFIX ?= /usr/local
+PREFIX ?= /usr
INSTALL_FOLDER ?= $(PREFIX)/bin
SHARED_ROOT_FOLDER ?= $(PREFIX)/share
@@ -138,7 +138,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/lzma-sdk
endif
ifeq ($(USE_SYSTEM_ZLIB),0)
@@ -194,7 +194,7 @@ endif # MSYS2
## Misc stuff
##
-COMPTIME := $(shell date +%s)
+COMPTIME := 0
##
## General compiler and linker options
@@ -202,6 +202,7 @@ COMPTIME := $(shell date
LFLAGS := $(LDFLAGS)
+CFLAGS += $(our_CFLAGS)
ifeq ($(PRODUCTION),0)
CFLAGS += -W
CFLAGS += -Wall
@@ -277,7 +278,7 @@ endif
ifeq ($(DEBUG),0)
CFLAGS += -O2
ifneq ($(UNAME),Darwin)
-LFLAGS += -s
+LFLAGS +=
endif
else
ifeq ($(DEBUG),1)