2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-09-28 19:38:06 +02:00
|
|
|
#
|
|
|
|
# gmp
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-09-28 19:38:06 +02:00
|
|
|
|
2016-12-18 23:28:30 +01:00
|
|
|
GMP_VERSION = 6.1.2
|
2013-10-02 14:28:46 +02:00
|
|
|
GMP_SITE = $(BR2_GNU_MIRROR)/gmp
|
2013-09-06 08:14:15 +02:00
|
|
|
GMP_SOURCE = gmp-$(GMP_VERSION).tar.xz
|
2010-12-06 20:40:07 +01:00
|
|
|
GMP_INSTALL_STAGING = YES
|
2017-03-30 15:43:35 +02:00
|
|
|
GMP_LICENSE = LGPL-3.0+ or GPL-2.0+
|
2016-07-04 14:46:25 +02:00
|
|
|
GMP_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2
|
2020-12-04 16:46:01 +01:00
|
|
|
GMP_CPE_ID_VENDOR = gmplib
|
2013-03-23 23:26:34 +01:00
|
|
|
GMP_DEPENDENCIES = host-m4
|
2016-07-03 00:20:45 +02:00
|
|
|
HOST_GMP_DEPENDENCIES = host-m4
|
2013-03-23 23:26:34 +01:00
|
|
|
|
2016-06-13 08:04:05 +02:00
|
|
|
# GMP doesn't support assembly for coldfire or mips r6 ISA yet
|
2016-06-20 16:00:03 +02:00
|
|
|
# Disable for ARM v7m since it has different asm constraints
|
2017-05-05 14:35:20 +02:00
|
|
|
ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CPU_ARMV7M),y)
|
2015-11-24 14:32:27 +01:00
|
|
|
GMP_CONF_OPTS += --disable-assembly
|
|
|
|
endif
|
|
|
|
|
2019-09-05 15:40:40 +02:00
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
|
|
GMP_CONF_OPTS += --enable-cxx
|
|
|
|
else
|
|
|
|
GMP_CONF_OPTS += --disable-cxx
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|