From dc1287ee8acf44b0842136fea90ca99e6b083035 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 27 Apr 2017 14:30:14 +0300 Subject: [PATCH] aircrack-ng: don't build SSE code for non SSE target Fixes: http://autobuild.buildroot.net/results/763/7631470016f923e8f4a7696e65437c71b8668b6e/ http://autobuild.buildroot.net/results/621/621588651b5cf54726bbf5361399a2dc301b8a29/ http://autobuild.buildroot.net/results/628/628a66ef766308fba699f1faa942306e600e5575/ Cc: Laurent Cans Cc: Bernd Kuhls Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- package/aircrack-ng/aircrack-ng.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/aircrack-ng/aircrack-ng.mk b/package/aircrack-ng/aircrack-ng.mk index b728624003..6b384c0720 100644 --- a/package/aircrack-ng/aircrack-ng.mk +++ b/package/aircrack-ng/aircrack-ng.mk @@ -53,6 +53,12 @@ else AIRCRACK_NG_MAKE_OPTS += sqlite=false endif +ifeq ($(BR2_X86_CPU_HAS_SSE),y) +AIRCRACK_NG_MAKE_OPTS += NEWSSE=true +else +AIRCRACK_NG_MAKE_OPTS += NEWSSE=false +endif + define AIRCRACK_NG_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \ $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS)