aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2026-01-09 15:06:07 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2026-01-09 22:44:48 +0000
commit863b69df38942c988ddcb00c49b0ec84421f6755 (patch)
tree29611104913133cda6a93249acc27afdfc6ff45b
parent468bb34a9db85bc87876085645547eca7f55319c (diff)
net-mgmt/aircrack-ng: fix build on powerpc64
simd-intrinsics.c:2912:25: error: '__builtin_altivec_vsrd' requires the '-mcpu=power8' and '-mvsx' options
-rw-r--r--net-mgmt/aircrack-ng/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index 728cb786aeaa..053da2bcd07d 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -50,6 +50,12 @@ SQLITE_DESC= Use SQLite for storing pre-computed key tables
SQLITE_USES= sqlite
SQLITE_CONFIGURE_OFF= --without-sqlite3
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
+CFLAGS+= -mcpu=power8
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH:Mpowerpc*}