[fs_mgr] Use shared libutils for remount

Bug: http://b/197965342

remount depends on libbinder.so which already depends on libutils.so.
When linking remount with libutils.a, the linker tries to fetch objects
from libutils.a to redefine undefined symbols in libbinder.so.  This
causes linker failure with upstream LLD.  Switching to shared
libutils.so instead doesn't increase the dependency closure for remount.

Test: build with aosp/1809741 which has lld with the above behavior.
Change-Id: I858042a08babe2c2db1fc8c7eeb5de62dda5f328
This commit is contained in:
Pirama Arumuga Nainar 2021-08-25 22:14:50 -07:00
parent b504369754
commit cdf919d1f0

View file

@ -215,7 +215,6 @@ cc_binary {
static_libs: [
"libavb_user",
"libgsid",
"libutils",
"libvold_binder",
],
shared_libs: [
@ -230,6 +229,7 @@ cc_binary {
"liblog",
"liblp",
"libselinux",
"libutils",
],
header_libs: [
"libcutils_headers",