SVN-Revision: 36148
This commit is contained in:
Imre Kaloz 2013-04-01 15:43:23 +00:00
parent 99d4d9a148
commit 48612b3b4a
2 changed files with 6 additions and 8 deletions

View file

@ -110,10 +110,6 @@ GCC_CONFIGURE:= \
$(SOFT_FLOAT_CONFIG_OPTION) \ $(SOFT_FLOAT_CONFIG_OPTION) \
$(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \ $(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \
$(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 --with-abi=64) \ $(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 --with-abi=64) \
$(if $(CONFIG_sparc),--with-long-double-128) \
GCC_BUILD_TARGET_LIBGCC:=y
GCC_CONFIGURE+= \
--with-gmp=$(TOPDIR)/staging_dir/host \ --with-gmp=$(TOPDIR)/staging_dir/host \
--with-mpfr=$(TOPDIR)/staging_dir/host \ --with-mpfr=$(TOPDIR)/staging_dir/host \
--disable-decimal-float --disable-decimal-float
@ -121,7 +117,7 @@ ifneq ($(CONFIG_mips)$(CONFIG_mipsel),)
GCC_CONFIGURE += --with-mips-plt GCC_CONFIGURE += --with-mips-plt
endif endif
ifneq ($(CONFIG_GCC_VERSION_4_5)$(CONFIG_GCC_VERSION_4_6)$(CONFIG_GCC_VERSION_4_7),) ifeq ($(CONFIG_GCC_VERSION_4_4),)
GCC_CONFIGURE+= \ GCC_CONFIGURE+= \
--with-mpc=$(TOPDIR)/staging_dir/host --with-mpc=$(TOPDIR)/staging_dir/host
endif endif
@ -141,7 +137,9 @@ ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
endif endif
ifdef CONFIG_sparc ifdef CONFIG_sparc
GCC_CONFIGURE+= --enable-targets=all GCC_CONFIGURE+= \
--enable-targets=all \
--with-long-double-128
endif endif
ifeq ($(LIBC),uClibc) ifeq ($(LIBC),uClibc)

View file

@ -14,14 +14,14 @@ define Host/Compile
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \ +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
all-build-libiberty \ all-build-libiberty \
all-gcc \ all-gcc \
$(if $(GCC_BUILD_TARGET_LIBGCC),all-target-libgcc) all-target-libgcc
endef endef
define Host/Install define Host/Install
$(GCC_MAKE) -C $(GCC_BUILD_DIR) \ $(GCC_MAKE) -C $(GCC_BUILD_DIR) \
prefix="$(TOOLCHAIN_DIR)/initial" \ prefix="$(TOOLCHAIN_DIR)/initial" \
install-gcc \ install-gcc \
$(if $(GCC_BUILD_TARGET_LIBGCC),install-target-libgcc) install-target-libgcc
# XXX: glibc insists on linking against libgcc_eh # XXX: glibc insists on linking against libgcc_eh
( cd $(TOOLCHAIN_DIR)/initial/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \ ( cd $(TOOLCHAIN_DIR)/initial/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \