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

Commit 7508a81d authored by Dan Albert's avatar Dan Albert
Browse files

Fix libdl inclusion for default-ub.

We shouldn't be using ldlibs for target libraries because it doesn't
add a real dependency.

Change-Id: Ib1ec40b95356feb521e95674b64d04d5ecc06332
parent 46cb2ee3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -52,12 +52,13 @@ endif

ifneq ($(filter default-ub,$(my_sanitize)),)
  my_sanitize := $(CLANG_DEFAULT_UB_CHECKS)
  my_ldlibs += -ldl

  ifdef LOCAL_IS_HOST_MODULE
    my_cflags += -fno-sanitize-recover=all
    my_ldlibs += -ldl
  else
    my_cflags += -fsanitize-undefined-trap-on-error
    my_shared_libraries += libdl
  endif
endif