Merge "Stop linking libdl.a into static bins" am: fe43a3f2cb

am: e22800852f

Change-Id: I13d4ffc9677d1befc80a1388eeb40d0876e5c6a3
This commit is contained in:
Ryan Prichard 2019-10-28 13:47:13 -07:00 committed by android-build-merger
commit 0ba1b3f2e8
2 changed files with 4 additions and 2 deletions

View File

@ -182,7 +182,9 @@ ifneq ($(filter hwaddress,$(my_sanitize)),)
my_shared_libraries += $($(LOCAL_2ND_ARCH_VAR_PREFIX)HWADDRESS_SANITIZER_RUNTIME_LIBRARY)
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true)
my_static_libraries := $(my_static_libraries) $($(LOCAL_2ND_ARCH_VAR_PREFIX)HWADDRESS_SANITIZER_STATIC_LIBRARY)
my_static_libraries := $(my_static_libraries) \
$($(LOCAL_2ND_ARCH_VAR_PREFIX)HWADDRESS_SANITIZER_STATIC_LIBRARY) \
libdl
endif
endif
endif

View File

@ -82,7 +82,7 @@ ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),)
endif
ifeq ($(my_link_type),static)
my_static_libraries += libm libc libdl
my_static_libraries += libm libc
endif
endif
else ifeq ($(my_cxx_stl),ndk)