1################################################################################ 2# 3# gmp 4# 5################################################################################ 6 7GMP_VERSION = 6.2.1 8GMP_SITE = $(BR2_GNU_MIRROR)/gmp 9GMP_SOURCE = gmp-$(GMP_VERSION).tar.xz 10GMP_INSTALL_STAGING = YES 11GMP_LICENSE = LGPL-3.0+ or GPL-2.0+ 12GMP_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2 13GMP_CPE_ID_VENDOR = gmplib 14GMP_DEPENDENCIES = host-m4 15HOST_GMP_DEPENDENCIES = host-m4 16 17# 0001-mpz-inp_raw.c-Avoid-bit-size-overflows.patch 18GMP_IGNORE_CVES += CVE-2021-43618 19 20# GMP doesn't support assembly for coldfire or mips r6 ISA yet 21# Disable for ARM v7m since it has different asm constraints 22ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CPU_ARMV7M),y) 23GMP_CONF_OPTS += --disable-assembly 24endif 25 26ifeq ($(BR2_INSTALL_LIBSTDCPP),y) 27GMP_CONF_OPTS += --enable-cxx 28else 29GMP_CONF_OPTS += --disable-cxx 30endif 31 32ifeq ($(BR2_PACKAGE_GMP_STATIC),y) 33GMP_CONF_OPTS += --enable-static 34endif 35 36$(eval $(autotools-package)) 37$(eval $(host-autotools-package)) 38