hashcat/hashcat-build-fixes.patch
2022-09-02 17:46:28 +02:00

55 lines
1.9 KiB
Diff

From 49d6ac344d249941a0592113259a2af82914e319 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly@easycoding.org>
Date: Wed, 17 Jun 2020 10:57:15 +0200
Subject: [PATCH] Fedora build patches.
---
src/Makefile | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index 64f54dbf6..c0d587b35 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -43,7 +43,7 @@ endif
## Makefile flags
##
-MAKEFLAGS += -l -j 8 -rR --no-print-directory
+MAKEFLAGS += -l -rR --no-print-directory
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
MAKEFLAGS += -j 1
@@ -233,10 +233,7 @@ endif
endif
ifeq ($(DEBUG),0)
-CFLAGS += -O2
-ifneq ($(UNAME),Darwin)
-LFLAGS += -s
-endif
+CFLAGS += -DNDEBUG
else
ifeq ($(DEBUG),1)
ifneq ($(UNAME),Darwin)
@@ -505,7 +502,7 @@ endif
.PHONY: install
ifeq ($(SHARED),1)
-install: install_docs install_shared install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
+install: install_shared install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
else
install: install_docs install_shared install_tunings install_kernels install_modules install_hashcat
endif
@@ -578,7 +575,7 @@ install_kernels: install_shared
install_modules: install_shared modules
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules
$(FIND) modules/ -mindepth 1 -type d -execdir $(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
- $(FIND) modules/ -mindepth 1 -type f -execdir $(INSTALL) -m 644 {} $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
+ $(FIND) modules/ -mindepth 1 -type f -execdir $(INSTALL) -m 755 {} $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
.PHONY: install_library
install_library: $(HASHCAT_LIBRARY)
--
2.37.2