forked from OSchip/llvm-project
[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:
parent
1cdd96d6ad
commit
755fc5c313
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue