forked from openkylin/platform_build
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:
parent
46cb2ee3cb
commit
7508a81d40
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue