summaryrefslogtreecommitdiff
path: root/security/hashcat/files/patch-src_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/hashcat/files/patch-src_Makefile')
-rw-r--r--security/hashcat/files/patch-src_Makefile41
1 files changed, 28 insertions, 13 deletions
diff --git a/security/hashcat/files/patch-src_Makefile b/security/hashcat/files/patch-src_Makefile
index 4e42021a7a6d..e728d5dc6d15 100644
--- a/security/hashcat/files/patch-src_Makefile
+++ b/security/hashcat/files/patch-src_Makefile
@@ -1,7 +1,19 @@
---- src/Makefile.orig 2022-09-02 14:58:13 UTC
+--- src/Makefile.orig 2025-08-23 08:43:56 UTC
+++ src/Makefile
-@@ -82,7 +82,9 @@ CXX := c++
- ifneq (,$(filter $(UNAME),FreeBSD NetBSD))
+@@ -75,8 +75,9 @@ RM := rm
+ FIND := find
+ INSTALL := install
+ RM := rm
+-SED := sed
+-SED_IN_PLACE := -i
++CXXLIB := -lc++
++SED := /usr/bin/sed
++SED_IN_PLACE := -i ""
+
+ ifeq ($(UNAME),Darwin)
+ CC := clang
+@@ -95,7 +96,9 @@ CXX := c++
+ ifneq (,$(filter $(UNAME),FreeBSD NetBSD DragonFly))
CC := cc
CXX := c++
-SED := gsed
@@ -10,17 +22,20 @@
+SED_IN_PLACE := -i ""
endif
+ ifneq (,$(filter $(UNAME),OpenBSD))
+@@ -702,6 +705,11 @@ uninstall:
+ ## native compiled hashcat library and frontend
##
-@@ -213,7 +215,7 @@ ifneq ($(CC),clang)
- ifeq ($(ENABLE_UNRAR),1)
- ifeq ($(USE_SYSTEM_UNRAR),0)
- ifneq ($(CC),clang)
--CFLAGS_UNRAR += -Wno-class-memaccess
-+#CFLAGS_UNRAR += -Wno-class-memaccess
- CFLAGS_UNRAR += -Wno-misleading-indentation
- endif
- CFLAGS_UNRAR += -Wno-missing-braces
-@@ -651,10 +653,10 @@ $(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)
+
++ifeq ($(shell uname -p),powerpc64le)
++obj/emu_inc_cipher_serpent.NATIVE.o: src/emu_inc_cipher_serpent.c
++ $(CC) -c $(CCFLAGS) $(CFLAGS_NATIVE) -O0 $< -o $@ -fpic
++endif
++
+ obj/%.NATIVE.o: src/%.c
+ $(CC) -c $(CCFLAGS) $(CFLAGS_NATIVE) $< -o $@ -fpic
+
+@@ -752,10 +760,10 @@ $(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)
ifeq ($(SHARED),1)
$(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)