Browse Source

- fix crosscompiler prerequisites

Bernhard Reutner-Fischer 18 years ago
parent
commit
19818694fe
2 changed files with 9 additions and 2 deletions
  1. 8 1
      toolchain/binutils/binutils.mk
  2. 1 1
      toolchain/gcc/gcc-uclibc-3.x.mk

+ 8 - 1
toolchain/binutils/binutils.mk

@@ -40,8 +40,15 @@ endif
 # We do not rely on the host's gmp/mpfr but use a known working one
 BINUTILS_HOST_PREREQ:=
 BINUTILS_TARGET_PREREQ:=
-ifndef BINUTILS_NO_MPFR
 
+ifeq ($(findstring 3.,$(GCC_VERSION)),3.)
+BINUTILS_NO_MPFR:=y
+endif
+ifeq ($(findstring 4.0,$(GCC_VERSION)),4.0)
+BINUTILS_NO_MPFR:=y
+endif
+
+ifndef BINUTILS_NO_MPFR
 BINUTILS_HOST_PREREQ:=$(TOOL_BUILD_DIR)/gmp/lib/libgmp.so \
 	$(TOOL_BUILD_DIR)/mpfr/lib/libmpfr.so
 

+ 1 - 1
toolchain/gcc/gcc-uclibc-3.x.mk

@@ -72,7 +72,7 @@ endif
 GCC_TARGET_PREREQ =
 GCC_STAGING_PREREQ= $(STAGING_DIR)/lib/libc.a
 
-ifndef $(GCC_NO_MPFR)
+ifndef GCC_NO_MPFR
 GCC_WITH_HOST_GMP=--with-gmp=$(GMP_HOST_DIR)
 GCC_WITH_HOST_MPFR=--with-mpfr=$(MPFR_HOST_DIR)