[asan] Link sanitizer_common tests on Android as -pie.

llvm-svn: 240825
This commit is contained in:
Evgeniy Stepanov 2015-06-26 20:39:30 +00:00
parent cfbdba2d0b
commit 609af9098c
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ if(NOT MSVC)
list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON --driver-mode=g++)
endif()
if(ANDROID)
list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON -pie)
endif()
set(SANITIZER_TEST_LINK_LIBS)
append_list_if(ANDROID log SANITIZER_TEST_LINK_LIBS)
# NDK r10 requires -latomic almost always.