diff src/build-binutils.mk @ 3877:65b9641f852c

build-binutils: remove native tools from HOST_PREFIX/bin (Bug 44753) * src/build-binutils.mk: for win64, remove ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip from the HOST/bin folder
author John Donoghue
date Tue, 07 Apr 2015 12:20:02 -0400
parents 7e15ef9bf1e5
children 16ce2dee4633
line wrap: on
line diff
--- a/src/build-binutils.mk	Mon Apr 06 14:42:00 2015 -0400
+++ b/src/build-binutils.mk	Tue Apr 07 12:20:02 2015 -0400
@@ -17,6 +17,10 @@
     $(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
+else
+  define $(PKG)_POST_BUILD
+    rm $(addprefix $(HOST_PREFIX)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip)
+  endef
 endif
 endif