Skip to content

Commit 754d92c

Browse files
author
Raphael
committed
Fix etc1tool to build in Windows SDK under Linux
(Merges master Change Ib38a019b + Change I50f55004) Change-Id: Ib9f7576350c892930fa44a08de36eec502a04b88
1 parent 7db90a6 commit 754d92c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/etc1tool/Android.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ LOCAL_STATIC_LIBRARIES := \
2323
libpng \
2424
libETC1
2525

26-
LOCAL_LDLIBS := -lz
27-
2826
ifeq ($(HOST_OS),linux)
2927
LOCAL_LDLIBS += -lrt
3028
endif
3129

32-
ifeq ($(HOST_OS),windows)
33-
ifeq ($(strip $(USE_CYGWIN),),)
34-
LOCAL_LDLIBS += -lws2_32
35-
endif
30+
# Statically link libz for MinGW (Win SDK under Linux),
31+
# and dynamically link for all others.
32+
ifneq ($(strip $(USE_MINGW)),)
33+
LOCAL_STATIC_LIBRARIES += libz
34+
else
35+
LOCAL_LDLIBS += -lz
3636
endif
3737

3838
LOCAL_MODULE := etc1tool

0 commit comments

Comments
 (0)