summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/binutils/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index b2c281e37..33f03c7fb 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -40,8 +40,10 @@ $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
$(MAKE) -C $(WRKBUILD) install
- # needed on hosts without readelf
+ # needed on hosts without readelf, but strange things happen on Cygwin.
+ifeq (${OStype},Darwin)
$(CP) $(WRKBUILD)/binutils/readelf $(STAGING_HOST_DIR)/bin
+endif
touch $@
include ${TOPDIR}/mk/toolchain.mk