diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-06-26 20:39:30 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-06-26 20:39:30 +0000 |
commit | 0297aca263bfaae2d08efe6bcf74af0425d18a61 (patch) | |
tree | 3339833021762f31b34ecf7202a6eee6df5caa66 /lib/sanitizer_common/tests | |
parent | 8518fd987e08fa070c92af4a300016910b14809c (diff) |
[asan] Link sanitizer_common tests on Android as -pie.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/tests')
-rw-r--r-- | lib/sanitizer_common/tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/tests/CMakeLists.txt b/lib/sanitizer_common/tests/CMakeLists.txt index 540d50698..b0165eac2 100644 --- a/lib/sanitizer_common/tests/CMakeLists.txt +++ b/lib/sanitizer_common/tests/CMakeLists.txt @@ -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. |