From 08a0809fbbc4a7ae761b3e5d9279498964638dbc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 4 Jan 2011 09:54:34 +0100 Subject: copy readelf only on Darwin build system On Cygwin readelf in this directory is not the right binary. The real binary is in .libs/readelf.exe. Toolchain building fails on Cygwin after copying the readelf thingy. --- toolchain/binutils/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toolchain/binutils') 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 -- cgit v1.2.3