[Driver] add -lresolv for all but Android.
authorKevin Athey <kda@google.com>
Mon, 6 Jun 2022 22:43:00 +0000 (15:43 -0700)
committerKevin Athey <kda@google.com>
Mon, 6 Jun 2022 22:49:42 +0000 (15:49 -0700)
commit6dce56b2a3082191aa3d26abd4f05cf518d98356
treeb3df88ca9a60472c2483a941683c219d4f60e376
parent3bcaf2eb9337f1832fa45a095aa2e8862dcb84cd
[Driver] add -lresolv for all but Android.

As there 3 intercepts that depend on libresolv, link tests in ./configure scripts may be confuse by the presence of resolv symbols (i.e. dn_expand) even with -lresolv and get a runtime error.

Android provides the functionality in libc.

https://reviews.llvm.org/D122849
https://reviews.llvm.org/D126851

Reviewed By: eugenis, MaskRay

Differential Revision: https://reviews.llvm.org/D127145
clang/lib/Driver/ToolChains/CommonArgs.cpp
compiler-rt/test/msan/Linux/b64.cpp
compiler-rt/test/msan/Linux/dn_expand.cpp
compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp
compiler-rt/test/sanitizer_common/TestCases/Linux/dn_expand.cpp