diff options
| -rw-r--r-- | package/aircrack-ng/0001-autotools-Fix-optional-SIMD-on-PPC-arch.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/package/aircrack-ng/0001-autotools-Fix-optional-SIMD-on-PPC-arch.patch b/package/aircrack-ng/0001-autotools-Fix-optional-SIMD-on-PPC-arch.patch new file mode 100644 index 0000000000..11568525e8 --- /dev/null +++ b/package/aircrack-ng/0001-autotools-Fix-optional-SIMD-on-PPC-arch.patch @@ -0,0 +1,69 @@ +From 7cf680386de051cb8308510680299aef810fe743 Mon Sep 17 00:00:00 2001 +From: Joseph Benden <joe@benden.us> +Date: Fri, 17 Aug 2018 13:23:39 -0700 +Subject: [PATCH] autotools: Fix optional SIMD on PPC arch + +Resolves: +https://github.com/aircrack-ng/aircrack-ng/issues/1941 + +Upstream (applied to their master, not yet in a release): (squashed together) +https://github.com/aircrack-ng/aircrack-ng/commit/97838c6b903d33c8403a4bdcae60b8619fad7538 +https://github.com/aircrack-ng/aircrack-ng/commit/efc0b2718f4afd9582419902d205b242e546b9ab + +Signed-off-by: Joseph Benden <joe@benden.us> +Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com +--- + build/m4/aircrack_ng_simd.m4 | 4 ++++ + src/aircrack-crypto/Makefile.am | 7 ++++++- + 2 files changed, 10 insertions(+), 1 deletion(-) + +diff --git a/build/m4/aircrack_ng_simd.m4 b/build/m4/aircrack_ng_simd.m4 +index 29c3816..2bcc41f 100644 +--- a/build/m4/aircrack_ng_simd.m4 ++++ b/build/m4/aircrack_ng_simd.m4 +@@ -132,6 +132,7 @@ then + AX_CHECK_COMPILE_FLAG([-maltivec], [ + AX_APPEND_FLAG(-maltivec, [ppc_altivec_[]_AC_LANG_ABBREV[]flags]) + AC_SUBST(ppc_altivec_[]_AC_LANG_ABBREV[]flags) ++ ALTIVEC_FOUND=1 + ]) + + AX_CHECK_COMPILE_FLAG([-mabi=altivec], [ +@@ -147,6 +148,7 @@ then + AX_CHECK_COMPILE_FLAG([-mpower8-vector], [ + AX_APPEND_FLAG(-mpower8-vector, [ppc_altivec_[]_AC_LANG_ABBREV[]flags]) + AC_SUBST(ppc_altivec_[]_AC_LANG_ABBREV[]flags) ++ POWER8_FOUND=1 + ]) + fi + +@@ -258,6 +260,8 @@ AM_CONDITIONAL([ARM], [test "$IS_ARM" = 1]) + AM_CONDITIONAL([PPC], [test "$IS_PPC" = 1]) + AM_CONDITIONAL([NEON], [test "$NEON_FOUND" = 1]) + AM_CONDITIONAL([AVX512F], [test "$AVX512F_FOUND" = 1]) ++AM_CONDITIONAL([ALTIVEC], [test "$ALTIVEC_FOUND" = 1]) ++AM_CONDITIONAL([POWER8], [test "$POWER8_FOUND" = 1]) + ]) + + AC_DEFUN([AIRCRACK_NG_SIMD_C], [ +diff --git a/src/aircrack-crypto/Makefile.am b/src/aircrack-crypto/Makefile.am +index 8cc685d..a1664a5 100644 +--- a/src/aircrack-crypto/Makefile.am ++++ b/src/aircrack-crypto/Makefile.am +@@ -131,7 +131,12 @@ lib_LTLIBRARIES += libaircrack-crypto-arm-neon.la + endif + endif + if PPC +-lib_LTLIBRARIES += libaircrack-crypto-ppc-altivec.la libaircrack-crypto-ppc-power8.la ++if ALTIVEC ++lib_LTLIBRARIES += libaircrack-crypto-ppc-altivec.la ++endif ++if POWER8 ++lib_LTLIBRARIES += libaircrack-crypto-ppc-power8.la ++endif + endif + if X86 + if AVX512F +-- +1.9.1 + |

