kumquat-buildroot/package/nettle/nettle.mk
Gustavo Zacarias 59c360bdae nettle: fix ARM NEON breakage
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>
2013-05-05 16:35:06 +02:00

27 lines
813 B
Makefile

NETTLE_VERSION = 2.7
NETTLE_SITE = http://www.lysator.liu.se/~nisse/archive
NETTLE_DEPENDENCIES = gmp
NETTLE_INSTALL_STAGING = YES
NETTLE_LICENSE = LGPLv2.1+
NETTLE_LICENSE_FILES = COPYING.LIB
# ARM assembly requires v6+ ISA
ifeq ($(BR2_arm7tdmi)$(BR2_arm720t)$(BR2_arm920t)$(BR2_arm922t)$(BR2_arm926t)$(BR2_arm10t)$(BR2_fa526)$(BR2_strongarm)$(BR2_xscale)$(BR2_iwmmxt),y)
NETTLE_CONF_OPT += --disable-assembler
endif
# 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
endif
define NETTLE_DITCH_DEBUGGING_CFLAGS
$(SED) '/CFLAGS/ s/ -ggdb3//' $(@D)/configure
endef
NETTLE_POST_EXTRACT_HOOKS += NETTLE_DITCH_DEBUGGING_CFLAGS
$(eval $(autotools-package))