Fix dexdump to build in Windows SDK under Linux
Change-Id: I0e57c81dcfc53d7065d420129d75ac32cda040e2
diff --git a/dexdump/Android.mk b/dexdump/Android.mk
index 9107638..c8720d8 100644
--- a/dexdump/Android.mk
+++ b/dexdump/Android.mk
@@ -63,7 +63,13 @@
LOCAL_C_INCLUDES := $(dexdump_c_includes)
LOCAL_SHARED_LIBRARIES := $(dexdump_shared_libraries)
LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) liblog
+
+ifneq ($(strip $(USE_MINGW)),)
+LOCAL_STATIC_LIBRARIES += libz
+else
LOCAL_LDLIBS += -lpthread -lz
+endif
+
include $(BUILD_HOST_EXECUTABLE)
endif # !TARGET_SIMULATOR