summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-01-17 09:38:46 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-01-17 09:38:46 +0000
commitc721353d39f8c3a5b0ec31a25f5e99aee17c28fb (patch)
treebd01f8e2ab79613838e339d9661237e8c85dcb2b /make
parent9b5970e063391c4d8d4ffc5910867eabb9a03d88 (diff)
[asan] Link runtime library with -lm -Wl,-z,defs to ensure that it declares all its dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r--make/platform/clang_linux.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/platform/clang_linux.mk b/make/platform/clang_linux.mk
index ce700b849..d0962c931 100644
--- a/make/platform/clang_linux.mk
+++ b/make/platform/clang_linux.mk
@@ -111,8 +111,8 @@ ANDROID_COMMON_FLAGS := -target arm-linux-androideabi \
-B$(LLVM_ANDROID_TOOLCHAIN_DIR)
CFLAGS.asan-arm-android := $(CFLAGS) -fPIC -fno-builtin \
$(ANDROID_COMMON_FLAGS) -mllvm -arm-enable-ehabi -fno-rtti
-LDFLAGS.asan-arm-android := $(LDFLAGS) $(ANDROID_COMMON_FLAGS) -ldl \
- -Wl,-soname=libclang_rt.asan-arm-android.so
+LDFLAGS.asan-arm-android := $(LDFLAGS) $(ANDROID_COMMON_FLAGS) -ldl -lm \
+ -Wl,-soname=libclang_rt.asan-arm-android.so -Wl,-z,defs
# Use our stub SDK as the sysroot to support more portable building. For now we
# just do this for the core module, because the stub SDK doesn't have