Refine the library linking for the tests of DnsResolver
Some MTS tests failed due to libbase becoming incompatible between Q and R. Refine the linking for our tests to fix the problem and prevent similar issues. 1. liblog has stable C APIs so just have it linked shared. 2. Statically link all libraries as we can. Bug: 151122313 Test: atest Merged-In: I56b6774b09cd4027db268ba74b670be01e88b2eb Change-Id: I86f9ec4db57c2164d48ec8ec272fe47af322294c (cherry picked from commit b838c3b6)
Loading