summaryrefslogtreecommitdiff
path: root/toolchain/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-27 16:02:36 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-27 16:02:36 +0200
commit86b99bd22ef9ee99ece357850c8418687bb75e8f (patch)
treedbc2799a86781f66dbb6a05ac2a8bb44dac1a21b /toolchain/binutils
parentb56776c0b669cc5117bd15ab7e9b2ba57080aa9d (diff)
add HOST_PATH, required for bison
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/Makefile8
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/