summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/mpfr/mpfr.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/mpfr/mpfr.mk b/package/mpfr/mpfr.mk
index 15322d8e1..12614d860 100644
--- a/package/mpfr/mpfr.mk
+++ b/package/mpfr/mpfr.mk
@@ -34,12 +34,15 @@ ifneq ($(MPFR_PATCH),)
endif
touch $(MPFR_DIR)/.unpacked
+ifeq ($(BR2_INSTALL_LIBSTDCPP),)
+MPFR_CXX:=CXX=""
+endif
$(MPFR_DIR)/.configured: $(MPFR_DIR)/.unpacked $(STAGING_DIR)/lib/$(GMP_BINARY)
(cd $(MPFR_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
ac_cv_c_bigendian=$(MPFR_BE) \
- CXX="" \
+ $(MPFR_CXX) \
./configure \
--host=$(REAL_GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \