From 4af6496eac1146a2eceb3e4c9915307a9e69b9e6 Mon Sep 17 00:00:00 2001 From: Martin Banky Date: Wed, 3 Nov 2010 15:59:31 -0300 Subject: Add gcc 4.5.1 to buildroot Signed-off-by: Martin.Banky@gmail.com Signed-off-by: Peter Korsgaard --- toolchain/binutils/binutils.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'toolchain/binutils') diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk index 85b605ea1..ef9f64404 100644 --- a/toolchain/binutils/binutils.mk +++ b/toolchain/binutils/binutils.mk @@ -29,6 +29,22 @@ EXTRA_BINUTILS_CONFIG_OPTIONS+=--with-mpfr="$(MPFR_HOST_DIR)" BINUTILS_TARGET_CONFIG_OPTIONS=--with-gmp="$(GMP_TARGET_DIR)" BINUTILS_TARGET_CONFIG_OPTIONS+=--with-mpfr="$(MPFR_TARGET_DIR)" +ifeq ($(BR2_PACKAGE_LIBMPC),y) +BINUTILS_ADD_MPC = y +endif + +ifeq ($(findstring x4.5.,x$(GCC_VERSION)),x4.5.) +BINUTILS_ADD_MPC = y +endif + +ifeq ($(BINUTILS_ADD_MPC),y) +BINUTILS_HOST_PREREQ += $(TOOLCHAIN_DIR)/mpc/lib/libmpc$(HOST_LIBEXT) +HOST_SOURCE += host-libmpc-source +BINUTILS_TARGET_PREREQ += $(TARGET_DIR)/usr/lib/libmpc$(LIBTGTEXT) +EXTRA_BINUTILS_CONFIG_OPTIONS += --with-mpc="$(MPC_HOST_DIR)" +BINUTILS_TARGET_CONFIG_OPTIONS += --with-mpc="$(MPC_TARGET_DIR)" +endif + BINUTILS_PATCH_DIR:=toolchain/binutils/$(BINUTILS_VERSION) ifneq ($(filter xtensa%,$(ARCH)),) -- cgit v1.2.3