Merge "Link librt on the host when using sanitizers."

This commit is contained in:
Dan Albert 2015-08-14 00:59:52 +00:00 committed by Gerrit Code Review
commit 578acca4e2
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ ifneq ($(my_sanitize),)
ifdef LOCAL_IS_HOST_MODULE
my_cflags += -fno-sanitize-recover=all
my_ldflags += -fsanitize=$(fsanitize_arg)
my_ldlibs += -ldl
my_ldlibs += -lrt -ldl
else
my_cflags += -fsanitize-undefined-trap-on-error
my_cflags += -ftrap-function=abort