Browse Source

- eventually let configure check our cross-compiler. nil the checks otherwise.

Bernhard Reutner-Fischer 18 years ago
parent
commit
d4c12921dc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      package/mpfr/mpfr.mk

+ 4 - 1
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) \