[compiler-rt] r199483 - [asan] Link runtime library with -lm -Wl, -z, defs to ensure that it declares all its dependencies.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Jan 17 01:38:47 PST 2014
Author: eugenis
Date: Fri Jan 17 03:38:46 2014
New Revision: 199483
URL: http://llvm.org/viewvc/llvm-project?rev=199483&view=rev
Log:
[asan] Link runtime library with -lm -Wl,-z,defs to ensure that it declares all its dependencies.
Modified:
compiler-rt/trunk/make/platform/clang_linux.mk
Modified: compiler-rt/trunk/make/platform/clang_linux.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_linux.mk?rev=199483&r1=199482&r2=199483&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_linux.mk (original)
+++ compiler-rt/trunk/make/platform/clang_linux.mk Fri Jan 17 03:38:46 2014
@@ -111,8 +111,8 @@ ANDROID_COMMON_FLAGS := -target arm-linu
-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
More information about the llvm-commits
mailing list