[asan] Use -pthread instead of -lpthread in tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210255 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix lit tests setup on Android.

Pass cflags in a way that's compatible with standalone compiler-rt build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210256 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add 'asan' to asan test deps.

This sound like a good idea in general.
Also, without this on Android we get add_lit_testsuite() with empty DEPENDS
list, and it does not work well.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210257 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] asan_device_setup: extend search path

In standalone build asan-rt is stored in yet another path.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210259 91177308-0d34-0410-b5e6-96231b3b80d8