On 05/10/2019 17:48, Christian Weisgerber wrote:
security/aircrack-ng fails to build on aarch64 and arm:
http://build-failures.rhaalovely.net/aarch64/2019-09-27/security/aircrack-ng.loghttp://build-failures.rhaalovely.net/arm/2019-07-19/security/aircrack-ng.log
clang refuses to compile the code that makes use of the NEON SIMD
instructions:
https://github.com/aircrack-ng/aircrack-ng/issues/1957
Disabling the NEON optimizations allows aircrack-ng to build.
ok?
ok benoit@ !
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/aircrack-ng/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile 12 Aug 2019 14:40:04 -0000 1.27
+++ Makefile 5 Oct 2019 15:40:02 -0000
@@ -34,6 +34,10 @@ AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.16
CONFIGURE_STYLE= autoreconf
+# Disable NEON optimizations (arm, aarch64) since clang can't compile the code
+# https://github.com/aircrack-ng/aircrack-ng/issues/1957
+CONFIGURE_ENV+= ax_cv_neon_cflags=no ax_cv_neon_cxxflags=no
+
MAKE_ENV+= SQLITE=true UNSTABLE=true
MAKE_FLAGS+= CC=${CC}