summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/commands/emugen/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/commands/emugen/Android.mk b/host/commands/emugen/Android.mk
index 777f124ee..d3e551d45 100644
--- a/host/commands/emugen/Android.mk
+++ b/host/commands/emugen/Android.mk
@@ -19,6 +19,10 @@ ifeq ($(BUILD_HOST_OS),linux)
LOCAL_LDFLAGS +=-Wl,-rpath=$(BUILD_OBJS_DIR)/intermediates64
endif
+ifneq (,$(BUILD_SANITIZER))
+ LOCAL_LDFLAGS += -lclang_rt.asan-x86_64 -ldl
+endif
+
LOCAL_INSTALL := false
$(call emugl-end-module)