From: Felix Fietkau Date: Sat, 27 Dec 2014 13:00:09 +0000 (+0000) Subject: binutils: run install twice instead of overwriting the final toolchain with the initi... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=a2d72da2912cbdb6ea4941f569bc1df6a07ed291 binutils: run install twice instead of overwriting the final toolchain with the initial one fixes compiler error after a binutils rebuild/reinstall without rebuilding the rest of the toolchain Signed-off-by: Felix Fietkau SVN-Revision: 43785 --- diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index 8e661b98eb..8441f740ac 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -84,9 +84,11 @@ define Host/Install $(MAKE) -C $(HOST_BUILD_DIR) \ prefix=$(TOOLCHAIN_DIR)/initial \ install + $(MAKE) -C $(HOST_BUILD_DIR) \ + prefix=$(TOOLCHAIN_DIR) \ + install $(call FixupLibdir,$(TOOLCHAIN_DIR)/initial) $(RM) $(TOOLCHAIN_DIR)/initial/lib/libiberty.a - $(CP) $(TOOLCHAIN_DIR)/initial/. $(TOOLCHAIN_DIR)/ $(CP) $(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf endef