am 575cf4dc: am 4c70244c: Make zipalign build for the Win SDK under Linux.
Merge commit '575cf4dc5e7d290858b1c11f4195694888a8164c' into kraken
* commit '575cf4dc5e7d290858b1c11f4195694888a8164c':
Make zipalign build for the Win SDK under Linux.
diff --git a/tools/zipalign/Android.mk b/tools/zipalign/Android.mk
index f90a31c..9763bd2 100644
--- a/tools/zipalign/Android.mk
+++ b/tools/zipalign/Android.mk
@@ -18,17 +18,14 @@
libutils \
libcutils
-LOCAL_LDLIBS := -lz
-
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt
endif
-# dunno if we need this, but some of the other tools include it
-ifeq ($(HOST_OS),windows)
-ifeq ($(strip $(USE_CYGWIN),),)
-LOCAL_LDLIBS += -lws2_32
-endif
+ifneq ($(strip $(USE_MINGW)),)
+LOCAL_STATIC_LIBRARIES += libz
+else
+LOCAL_LDLIBS += -lz
endif
LOCAL_MODULE := zipalign