diff options
Diffstat (limited to 'toolchain/binutils/Makefile')
-rw-r--r-- | toolchain/binutils/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index 14c33bc05..69c235701 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -47,7 +47,7 @@ ifeq ($(ADK_TARGET_ARCH_XTENSA),y) tar xf $(ADK_TOPDIR)/target/xtensa/overlay/xtensa_$(ADK_TARGET_CPU_TYPE).tar \ --strip-components=1 -C $(WRKSRC) binutils endif - (cd $(WRKBUILD); \ + (cd $(WRKBUILD); PATH='$(HOST_PATH)' \ $(WRKBUILD)/configure \ --prefix=$(TOOLCHAIN_DIR)/usr \ --target=$(GNU_TARGET_NAME) \ @@ -61,15 +61,15 @@ endif --disable-install-libiberty \ ${CONFOPTS} \ ); - $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) configure-host + PATH='$(HOST_PATH)' $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) configure-host touch $@ $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured - $(MAKE) ${BINUTILS_MAKEOPTS} ${BINUTILS_STATIC_MAKEOPTS} -C $(WRKBUILD) all + PATH='$(HOST_PATH)' $(MAKE) ${BINUTILS_MAKEOPTS} ${BINUTILS_STATIC_MAKEOPTS} -C $(WRKBUILD) all touch $@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled - $(MAKE) -C $(WRKBUILD) install + PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) install ifeq ($(ADK_TARGET_ARCH_H8300)$(ADK_TARGET_ARCH_NDS32),y) $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/lib/ldscripts $(CP) $(WRKBUILD)/ld/ldscripts/* $(STAGING_TARGET_DIR)/usr/lib/ldscripts/ |