diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-04 09:54:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-04 09:54:34 +0100 |
commit | 08a0809fbbc4a7ae761b3e5d9279498964638dbc (patch) | |
tree | 588378f3e98208be806c3b9dc5b51ccbd12fcbea /toolchain | |
parent | d75c4702cc626e744a43aa144e62ad54e775041b (diff) |
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.
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/binutils/Makefile | 4 |
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 |