# HG changeset patch # User John W. Eaton # Date 1391795354 18000 # Node ID 3350681f52f24f13b2605458f70af28c78de1c1a # Parent a6b2b4f9532e2d5db4a4a53fbd8b680ce0ea7814 Don't install cross tools in host directory tree. Don't install cross tools separately in cross-tools directory tree. Specify cross AS, LD, and NM programs explicitly when configuring GCC. diff -r a6b2b4f9532e -r 3350681f52f2 src/build-binutils.mk --- a/src/build-binutils.mk Fri Feb 07 12:45:35 2014 -0500 +++ b/src/build-binutils.mk Fri Feb 07 12:49:14 2014 -0500 @@ -15,6 +15,13 @@ $(PKG)_DEPS := build-gcc endif +ifneq ($(MXE_NATIVE_BUILD),yes) + define $(PKG)_POST_BUILD + $(INSTALL) -d '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)' + mv $(addprefix $(HOST_PREFIX)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip) '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)' + endef +endif + define $(PKG)_UPDATE $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ $(SED) -n 's,.* '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config'; \ chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config'; \ fi + + $($(PKG)_POST_BUILD) endef