のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

cygwinのndk-buildでNULファイルができる

どうにかできないかな?
cygwinbashで消せば消える。

rm ./NUL

ndk-buildでNULファイルができるのは、
build/core/init.mkファイルを修正すると治る。

~/android-ndk-r7/build/core
--- init.mk.org 2012-02-21 16:31:27.756223600 +0900
+++ init.mk     2012-02-21 16:32:00.638104300 +0900
@@ -140,7 +140,7 @@
 ifeq ($(HOST_OS),windows)
     ifneq (,$(strip $(wildcard /bin/uname.exe)))
         $(call ndk_log,Found /bin/uname.exe on Windows host, checking for Cygwin)
-        UNAME := $(shell /bin/uname.exe -s 2>NUL)
+        UNAME := $(shell /bin/uname.exe -s 2>/dev/null)   <==ここ
         $(call ndk_log,uname -s returned: $(UNAME))
         ifneq (,$(filter CYGWIN%,$(UNAME)))
             $(call ndk_log,Cygwin detected!)

情報源:
Windows 版の NDK を r6b から r7 に...
Cygwinについて質問です。