Avoid trying to link against libresolv for Android
Android does not have a separate libresolv library.
This commit is contained in:
@@ -14,6 +14,7 @@ AS_CASE([$host_os],
|
|||||||
[netbsd*], [PLATFORM="bsd"],
|
[netbsd*], [PLATFORM="bsd"],
|
||||||
[*nto*|*qnx*], [PLATFORM="qnx"],
|
[*nto*|*qnx*], [PLATFORM="qnx"],
|
||||||
[*solaris*], [PLATFORM="solaris"],
|
[*solaris*], [PLATFORM="solaris"],
|
||||||
|
[*android*], [PLATFORM="android"],
|
||||||
[PLATFORM="nix"])
|
[PLATFORM="nix"])
|
||||||
|
|
||||||
AC_ARG_WITH([libxml2],
|
AC_ARG_WITH([libxml2],
|
||||||
@@ -90,6 +91,7 @@ AS_CASE([$PLATFORM],
|
|||||||
[bsd], [RESOLV_LIBS=""],
|
[bsd], [RESOLV_LIBS=""],
|
||||||
[qnx], [RESOLV_LIBS="-lsocket"],
|
[qnx], [RESOLV_LIBS="-lsocket"],
|
||||||
[solaris], [RESOLV_LIBS="-lresolv -lsocket -lnsl"],
|
[solaris], [RESOLV_LIBS="-lresolv -lsocket -lnsl"],
|
||||||
|
[android], [RESOLV_LIBS=""],
|
||||||
[RESOLV_LIBS="-lresolv"])
|
[RESOLV_LIBS="-lresolv"])
|
||||||
|
|
||||||
LIBS_TMP="${LIBS}"
|
LIBS_TMP="${LIBS}"
|
||||||
|
|||||||
Reference in New Issue
Block a user