binutils: run install twice instead of overwriting the final toolchain with the initi...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 27 Dec 2014 13:00:09 +0000 (13:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 27 Dec 2014 13:00:09 +0000 (13:00 +0000)
fixes compiler error after a binutils rebuild/reinstall without
rebuilding the rest of the toolchain

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43785

toolchain/binutils/Makefile

index 8e661b98eb75bdb5ad38510e3586f2d77f5d9685..8441f740ac17dfff96f236fc89a939e18bad5d54 100644 (file)
@@ -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