[asan] Link runtime library with -lm -Wl,-z,defs to ensure that it declares all its dependencies.

llvm-svn: 199483
This commit is contained in:
Evgeniy Stepanov 2014-01-17 09:38:46 +00:00
parent 1cdd96d6ad
commit 755fc5c313
1 changed files with 2 additions and 2 deletions

View File

@ -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