summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-05 20:45:12 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-05 20:45:12 +0000
commit1917176d4796d083441547aaf8da5bac65dbf281 (patch)
tree8c62285955f575ce940af60a4397fca85bb8341a
parenta114941fa8f5702de5519ca315bb1f42e392fff0 (diff)
downloadbcm5719-llvm-1917176d4796d083441547aaf8da5bac65dbf281.tar.gz
bcm5719-llvm-1917176d4796d083441547aaf8da5bac65dbf281.zip
[asan] Add --enable-new-dtags in tests on Android.
The dynamic loader does not accept DT_RPATH; it wants DT_RUNPATH. This is a temporary fix until D38430 lands. llvm-svn: 315020
-rw-r--r--compiler-rt/test/lit.common.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg
index dc1a6034f1e..2058120e0ab 100644
--- a/compiler-rt/test/lit.common.cfg
+++ b/compiler-rt/test/lit.common.cfg
@@ -55,7 +55,7 @@ config.available_features.add(compiler_id)
# BFD linker in 64-bit android toolchains fails to find libm.so, which is a
# transitive shared library dependency (via asan runtime).
if config.android:
- config.target_cflags += " -lm"
+ config.target_cflags += " -lm -Wl,--enable-new-dtags"
# Clear some environment variables that might affect Clang.
possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
OpenPOWER on IntegriCloud