aircrack-ng: don't build SSE code for non SSE target
authorBaruch Siach <baruch@tkos.co.il>
Thu, 27 Apr 2017 11:30:14 +0000 (14:30 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Apr 2017 12:16:41 +0000 (14:16 +0200)
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 <laurent.cans@gmail.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/aircrack-ng/aircrack-ng.mk

index b728624003c1149e5e6c15c2bae70b7b72a534ef..6b384c072003be7feef00dacbe5ae2c2088292e8 100644 (file)
@@ -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)