Merge "Don't attach linker_asan to linker in module definition."
This commit is contained in:
commit
85197af92b
@ -83,8 +83,6 @@ LOCAL_POST_LINK_CMD = $(hide) $($(LOCAL_2ND_ARCH_VAR_PREFIX)TARGET_OBJCOPY) \
|
|||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|
||||||
|
|
||||||
ifeq (address, $(strip $(SANITIZE_TARGET)))
|
|
||||||
|
|
||||||
define add-linker-symlink
|
define add-linker-symlink
|
||||||
$(eval _from := $(TARGET_OUT)/bin/$(1))
|
$(eval _from := $(TARGET_OUT)/bin/$(1))
|
||||||
$(eval _to:=$(2))
|
$(eval _to:=$(2))
|
||||||
@ -93,15 +91,11 @@ $(_from): $(LOCAL_MODULE_MAKEFILE)
|
|||||||
@mkdir -p $$(dir $$@)
|
@mkdir -p $$(dir $$@)
|
||||||
@rm -rf $$@
|
@rm -rf $$@
|
||||||
$(hide) ln -sf $(_to) $$@
|
$(hide) ln -sf $(_to) $$@
|
||||||
ALL_MODULES.linker.INSTALLED += $(_from)
|
|
||||||
linker: $(_from)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call add-linker-symlink,linker_asan,linker))
|
$(eval $(call add-linker-symlink,linker_asan,linker))
|
||||||
ifeq ($(TARGET_IS_64_BIT),true)
|
ifeq ($(TARGET_IS_64_BIT),true)
|
||||||
$(eval $(call add-linker-symlink,linker_asan64,linker64))
|
$(eval $(call add-linker-symlink,linker_asan64,linker64))
|
||||||
endif
|
endif
|
||||||
ALL_MODULES += linker
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(call first-makefiles-under,$(LOCAL_PATH))
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user