aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>2019-09-05 15:40:40 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-09-07 15:03:04 +0200
commit1abb95c97665778acc76b3fa1a61c2f44af46f52 (patch)
treeec4fa098663da5981b38ec36af9e483cde8a0f30
parent6942a0badbc525195b763fa3f897fd0805b4104f (diff)
downloadbuildroot-1abb95c97665778acc76b3fa1a61c2f44af46f52.tar.gz
buildroot-1abb95c97665778acc76b3fa1a61c2f44af46f52.tar.bz2
package/gmp: enable C++ support when BR2_INSTALL_LIBSTDCPP=y
gmp has optional C++ support, which is disabled by default. Let's enabled it conditionally depending on the BR2_INSTALL_LIBSTDCPP option. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/gmp/gmp.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
index 7236e37bb4..d124463a98 100644
--- a/package/gmp/gmp.mk
+++ b/package/gmp/gmp.mk
@@ -19,5 +19,11 @@ ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CP
GMP_CONF_OPTS += --disable-assembly
endif
+ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
+GMP_CONF_OPTS += --enable-cxx
+else
+GMP_CONF_OPTS += --disable-cxx
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))