[Buildroot] [git commit] package/gmp: enable C++ support when BR2_INSTALL_LIBSTDCPP=y

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Sep 7 13:03:04 UTC 2019

commit: https://git.buildroot.net/buildroot/commit/?id=1abb95c97665778acc76b3fa1a61c2f44af46f52
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

gmp has optional C++ support, which is disabled by default. Let's
enabled it conditionally depending on the BR2_INSTALL_LIBSTDCPP

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 package/gmp/gmp.mk | 6 ++++++
 1 file changed, 6 insertions(+)

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
+GMP_CONF_OPTS += --enable-cxx
+GMP_CONF_OPTS += --disable-cxx
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))

More information about the buildroot mailing list