summaryrefslogtreecommitdiffstats
path: root/core/clang/config.mk
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-10-20 20:24:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-10-20 20:24:08 +0000
commit1f134dd06cd12f032c833b9a43b476a9557fa8da (patch)
treec4bccbc9b493fb7dde04ef3ddb03fa0e018685ac /core/clang/config.mk
parented8206dba48e182f786ec677d56586ffaf973250 (diff)
parent2daceaa83c7f49b2bfeb40372123778714925098 (diff)
downloadbuild-1f134dd06cd12f032c833b9a43b476a9557fa8da.zip
build-1f134dd06cd12f032c833b9a43b476a9557fa8da.tar.gz
build-1f134dd06cd12f032c833b9a43b476a9557fa8da.tar.bz2
Merge "Add support for ASAN in host modules."
Diffstat (limited to 'core/clang/config.mk')
-rw-r--r--core/clang/config.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/clang/config.mk b/core/clang/config.mk
index bdd18d8..246690f 100644
--- a/core/clang/config.mk
+++ b/core/clang/config.mk
@@ -92,8 +92,14 @@ endif
# Address sanitizer clang config
ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS := -fsanitize=address
ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS := -Wl,-u,__asan_preinit
-ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES := libdl libasan_preload
-ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES := libasan
+
+ADDRESS_SANITIZER_CONFIG_EXTRA_LDLIBS_HOST := -lpthread -ldl
+ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES_HOST :=
+ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES_HOST := libasan
+
+ADDRESS_SANITIZER_CONFIG_EXTRA_LDLIBS_TARGET :=
+ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES_TARGET := libdl libasan_preload
+ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES_TARGET := libasan
# This allows us to use the superset of functionality that compiler-rt
# provides to Clang (for supporting features like -ftrapv).