From c1a663b577930f12b7a70ab45028a90ca6018298 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 21 May 2015 00:15:04 +0900 Subject: [PATCH] Don't link zlib bundled with android NDK --- configure.ac | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index eb8b063c..1d900012 100644 --- a/configure.ac +++ b/configure.ac @@ -257,16 +257,10 @@ case "$host" in esac # zlib -if test "x$android_build" = "xyes"; then - # Use zlib provided by NDK - APPLDFLAGS="-lz $APPLDFLAGS" - have_zlib=yes -else - PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no]) +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no]) - if test "x${have_zlib}" = "xno"; then - AC_MSG_NOTICE($ZLIB_PKG_ERRORS) - fi +if test "x${have_zlib}" = "xno"; then + AC_MSG_NOTICE($ZLIB_PKG_ERRORS) fi # cunit @@ -743,6 +737,7 @@ AC_MSG_NOTICE([summary of build options: Spdylay: ${have_spdylay} Jansson: ${have_jansson} Jemalloc: ${have_jemalloc} + Zlib: ${have_zlib} Boost CPPFLAGS: ${BOOST_CPPFLAGS} Boost LDFLAGS: ${BOOST_LDFLAGS} Boost::ASIO: ${BOOST_ASIO_LIB}