gustavogenovese / curl-android-ios

Static libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
641 stars 255 forks source link

zlib symbols are missing #39

Closed skindhu closed 7 years ago

skindhu commented 7 years ago

when i add LOCAL_LDLIBS += -lz in Android.mk

then

Android NDK: WARNING:jni/Android.mk:curl: LOCAL_LDLIBS is always ignored for static libraries

gustavogenovese commented 7 years ago

Exactly, it's a static library, not dynamic. You have to add -lz to your library, check test Android project, which builds a dynamic library using this static lib, and it makes use of the -lz linker flag