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"],
|
||||
[*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}"
|
||||
|
||||
Reference in New Issue
Block a user