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

Commit 3d81c664 authored by Yi Kong's avatar Yi Kong
Browse files

Fix build with global ThinLTO

net_test_stack_multi_adv uses symbols from some shared libs that
happens to be re-exported by one of the static libs in non-LTO mode.
ThinLTO is more aggressive/accurate at pruning unused symbols, thus
the build fails due to missing symbols.

Fixed by explicitly listing the dependent shared libs.

Bug: 195134194
Test: m GLOBAL_THINLTO=true net_test_stack_multi_adv
Change-Id: Ie9462eeef1fec56ce9855e06a17394bd222134ff
parent c5449c29
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -423,6 +423,9 @@ cc_test {
        "test/ble_advertiser_test.cc",
    ],
    shared_libs: [
        "android.system.suspend.control-V1-ndk",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",
    ],
    static_libs: [