summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/aapt2/Android.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/aapt2/Android.mk b/tools/aapt2/Android.mk
index e61fd29fc220..9cea17646bc6 100644
--- a/tools/aapt2/Android.mk
+++ b/tools/aapt2/Android.mk
@@ -70,8 +70,8 @@ testSources := \
XmlFlattener_test.cpp
cIncludes :=
+hostLdLibs :=
-hostLdLibs := -lz
hostStaticLibs := \
libandroidfw \
libutils \
@@ -80,6 +80,12 @@ hostStaticLibs := \
libexpat \
libziparchive-host
+ifneq ($(strip $(USE_MINGW)),)
+ hostStaticLibs += libz
+else
+ hostLdLibs += -lz
+endif
+
cFlags := -Wall -Werror -Wno-unused-parameter -UNDEBUG
cppFlags := -std=c++11 -Wno-missing-field-initializers