git: 7b15413664ac - main - security/hashcat: work around build failure on powerpc64le
Date: Thu, 28 Aug 2025 04:03:24 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7b15413664ac68f77077cf2427b2ae6c9de5b6d7
commit 7b15413664ac68f77077cf2427b2ae6c9de5b6d7
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-08-28 04:02:08 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-08-28 04:03:24 +0000
security/hashcat: work around build failure on powerpc64le
Clang seems to take huge amounts of time (tens of hours) when compiling one
of the files with -O2.
---
security/hashcat/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile
index 8cffda08e8b3..49f21d6f75be 100644
--- a/security/hashcat/Makefile
+++ b/security/hashcat/Makefile
@@ -43,6 +43,12 @@ BRAIN_DESC= Build Hashcat Brain
BRAIN_MAKE_ARGS_OFF= ENABLE_BRAIN=0
BRAIN_CFLAGS= -DWITH_BRAIN -Ideps/git/xxHash
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+USE_GCC= yes:build
+.endif
+
pre-install:
${STRIP_CMD} ${WRKSRC}/libhashcat.so.${PORTVERSION}
${STRIP_CMD} ${WRKSRC}/modules/*.so