Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4fb06b74 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

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
parent 0f5c8888
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment