nettle: fix ARM NEON breakage
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Sun, 5 May 2013 02:35:08 +0000 (02:35 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 5 May 2013 14:35:06 +0000 (16:35 +0200)
Nettle's ARM NEON optimizations use some assembly constructs that aren't
friendly with binutils < 2.21, so just disable it for external
toolchains or internal with an unsupported version.
http://autobuild.buildroot.net/results/3c6f91379f90d438b4da3dd330cf89e1dd746aaf/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/nettle/nettle.mk

index b3d273052be32f1c597f3f866b955c30f86db3d9..131826e7ded5219dcfe1e27e2d12b419c6e4cec4 100644 (file)
@@ -10,8 +10,8 @@ ifeq ($(BR2_arm7tdmi)$(BR2_arm720t)$(BR2_arm920t)$(BR2_arm922t)$(BR2_arm926t)$(B
 NETTLE_CONF_OPT += --disable-assembler
 endif
 
-# ARM NEON
-ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
+# ARM NEON, requires binutils 2.21+
+ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_TOOLCHAIN_BUILDROOT)$(BR2_BINUTILS_VERSION_2_20_1),yy)
 NETTLE_CONF_OPT += --enable-arm-neon
 else
 NETTLE_CONF_OPT += --disable-arm-neon