Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 578acca4 authored by Dan Albert's avatar Dan Albert Committed by Gerrit Code Review
Browse files

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

parents 8765fca2 29224114
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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