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

Commit a31dda4e authored by Yi Kong's avatar Yi Kong
Browse files

Fix build with global ThinLTO

net_test_stack_ad_parser 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_ad_parser
Change-Id: Iaee1e955be889c006a0ba27c128ad972f66b10f6
parent a5438956
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -449,6 +449,11 @@ cc_test {
    srcs: [
        "test/ad_parser_unittest.cc",
    ],
    shared_libs: [
        "android.system.suspend.control-V1-ndk",
        "libbinder_ndk",
        "libcrypto",
    ],
    static_libs: [
        "libbluetooth-types",
        "liblog",