am 5e9f4912: am 578acca4: Merge "Link librt on the host when using sanitizers."

* commit '5e9f491218721adecfab6ea0178cd1e4c6723a87':
  Link librt on the host when using sanitizers.
This commit is contained in:
Dan Albert 2015-08-14 01:10:46 +00:00 committed by Android Git Automerger
commit 7911f1b1aa

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