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