mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-16 06:25:04 -05:00
android: Use zlib provided by NDK
This commit is contained in:
parent
add067ed7e
commit
11026a3eda
12
configure.ac
12
configure.ac
@ -97,6 +97,7 @@ LIBS=$LIBS_OLD
|
|||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*android*)
|
*android*)
|
||||||
|
android_build=yes
|
||||||
# android does not need -pthread, but needs followng 2 libs for C++
|
# android does not need -pthread, but needs followng 2 libs for C++
|
||||||
SRC_LIBS="$SRC_LIBS -lstdc++ -lsupc++"
|
SRC_LIBS="$SRC_LIBS -lstdc++ -lsupc++"
|
||||||
;;
|
;;
|
||||||
@ -106,9 +107,14 @@ case "$host" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# zlib
|
# zlib
|
||||||
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3])
|
if test "x$android_build" = "xyes"; then
|
||||||
LIBS="$ZLIB_LIBS $LIBS"
|
# Use zlib provided by NDK
|
||||||
CFLAGS="$CFLAGS $ZLIB_CFLAGS"
|
LIBS="-lz $LIBS"
|
||||||
|
else
|
||||||
|
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3])
|
||||||
|
LIBS="$ZLIB_LIBS $LIBS"
|
||||||
|
CFLAGS="$CFLAGS $ZLIB_CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
# cunit
|
# cunit
|
||||||
PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])
|
PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])
|
||||||
|
Loading…
Reference in New Issue
Block a user