From dd7aeff5d21e8c5397b373eb3e0d2e92f07ef152 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 6 Sep 2016 01:24:26 +0200 Subject: [PATCH] Avoid trying to link against libresolv for Android Android does not have a separate libresolv library. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 99c16ca..efe0739 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,7 @@ AS_CASE([$host_os], [netbsd*], [PLATFORM="bsd"], [*nto*|*qnx*], [PLATFORM="qnx"], [*solaris*], [PLATFORM="solaris"], + [*android*], [PLATFORM="android"], [PLATFORM="nix"]) AC_ARG_WITH([libxml2], @@ -90,6 +91,7 @@ AS_CASE([$PLATFORM], [bsd], [RESOLV_LIBS=""], [qnx], [RESOLV_LIBS="-lsocket"], [solaris], [RESOLV_LIBS="-lresolv -lsocket -lnsl"], + [android], [RESOLV_LIBS=""], [RESOLV_LIBS="-lresolv"]) LIBS_TMP="${LIBS}"