瀏覽代碼

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.
Waldemar Brodkorb 13 年之前
父節點
當前提交
08a0809fbb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      toolchain/binutils/Makefile

+ 3 - 1
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