Disable static builds for mac and asan.
- asan doesn't support static linkage
- we don't need a static build of dex2oat for mac
Change-Id: I7eddd19f1f47e8b2a67ecc0aaf40cb70941febdd
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk
index 02ef0c6..77f39c4 100644
--- a/build/Android.common_build.mk
+++ b/build/Android.common_build.mk
@@ -35,6 +35,15 @@
ART_BUILD_HOST_DEBUG ?= true
ART_BUILD_HOST_STATIC ?= true
+# Asan does not support static linkage
+ifdef SANITIZE_HOST
+ ART_BUILD_HOST_STATIC := false
+endif
+
+ifneq ($$(HOST_OS),linux)
+ ART_BUILD_HOST_STATIC := false
+endif
+
ifeq ($(ART_BUILD_TARGET_NDEBUG),false)
$(info Disabling ART_BUILD_TARGET_NDEBUG)
endif