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
This commit is contained in:
Dan Albert 2015-06-15 11:39:29 -07:00
parent 46cb2ee3cb
commit 7508a81d40
1 changed files with 2 additions and 1 deletions

View File

@ -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