[compiler-rt] r315020 - [asan] Add --enable-new-dtags in tests on Android.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 13:45:12 PDT 2017
Author: eugenis
Date: Thu Oct 5 13:45:12 2017
New Revision: 315020
URL: http://llvm.org/viewvc/llvm-project?rev=315020&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/lit.common.cfg
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=315020&r1=315019&r2=315020&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Thu Oct 5 13:45:12 2017
@@ -55,7 +55,7 @@ config.available_features.add(compiler_i
# 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',
More information about the llvm-commits
mailing list