topshim/facade: Don't link with libbluetooth twice
libbluetooth was linked statically and dynamically causing a lot of issue because of duplicated instances, to fix that we only link with libbluetooth statically. Linking statically with libluetooth is not straightforward because of the dependency with bt_shim that depends on rust crates that are used by bt_topshim_facade too, leading to linking twice with theses libs and so the linker complaining of duplicate symbols. To fix that we instead pass bt_shim as dependency of bt_topshim_facade so the rust compiler will take care of only including the transitive dependencies once Test: m bt_topshim_facade Test: out/host/linux-x86/bin/bt_topshim_facade Change-Id: Ic24f383a4b2f9eda17f33dd344a90e416c482582
Showing
- system/btcore/Android.bp 13 additions, 2 deletionssystem/btcore/Android.bp
- system/btif/Android.bp 13 additions, 2 deletionssystem/btif/Android.bp
- system/gd/rust/shim/Android.bp 20 additions, 3 deletionssystem/gd/rust/shim/Android.bp
- system/gd/rust/topshim/facade/Android.bp 10 additions, 7 deletionssystem/gd/rust/topshim/facade/Android.bp
- system/gd/rust/topshim/facade/src/main.rs 12 additions, 0 deletionssystem/gd/rust/topshim/facade/src/main.rs
Loading
Please register or sign in to comment