Remove static libcutils and libutils dependencies
Bug: 197965342 - libcutils from fluoride_defaults_fuzzable, net_test_device, net_test_hci - libutils from bluetoothtbd_test fluoride_defaults_fuzzable is used by libbluetooth.so which depends on libchrome.so and libcutils.so. libchrome.so also has undefined symbols provided by libcutils.so. Then: ld.lld libcutils.a ... libchrome.so -o libbluetooth.so fails with upstream lld because the linker tries to define undefined functions from libchrome.so by fetching objects from libcutils.a. This causes undefined symbol errors from libcutils.a since we don't include other dependencies of libcutils.a here. Remove this and similarly unnecesary static_lib dependencies from a few tests and fuzzers. We need the static libcutils dependence only for the host libbluetooth.so. Test: cherry-pick aosp/2036867 and run: mmma packages/modules/Bluetooth Tag: #refactor Change-Id: Ic0570bef2124fdf373c279b077d5e017d0d71581 Merged-In: Ic0570bef2124fdf373c279b077d5e017d0d71581
Loading
Please register or sign in to comment