diff options
author | Evgenii Stepanov <eugenis@google.com> | 2016-06-30 23:49:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-06-30 23:49:26 +0000 |
commit | 3d8ee8896b39e0b1cd9e780a26d92dd6aec4b5ea (patch) | |
tree | d9f27009fa0f0fb5c53dbe5011acf291a47a0549 | |
parent | ff3341b33bac9ab20427a0c7bd489f87caf8f663 (diff) | |
parent | 55f73e6c43312e92ca8cd543099d27a4420a5b30 (diff) | |
download | build-3d8ee8896b39e0b1cd9e780a26d92dd6aec4b5ea.tar.gz |
Merge "Only add libdl dependency for ASan/TSan on target."
-rw-r--r-- | core/config_sanitizers.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk index 26dbb7334f..6b18be516f 100644 --- a/core/config_sanitizers.mk +++ b/core/config_sanitizers.mk @@ -101,7 +101,9 @@ ifneq ($(my_sanitize),) 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 |