Merge \"Only add libdl dependency for ASan/TSan on target.\"
am: 3d8ee8896b
Change-Id: I97e2daed8c10a325e27969c2fcaac1848dfefa80
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk
index 26dbb73..6b18be5 100644
--- a/core/config_sanitizers.mk
+++ b/core/config_sanitizers.mk
@@ -101,7 +101,9 @@
my_cflags += -fsanitize-trap=all
my_cflags += -ftrap-function=abort
endif
- my_shared_libraries += libdl
+ ifneq ($(filter address thread,$(my_sanitize)),)
+ my_shared_libraries += libdl
+ endif
endif
endif