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

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

Fix build with global ThinLTO

resolv_unsolicited_listener 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 libs.

Bug: 169004486
Test: m GLOBAL_THINLTO=true resolv_unsolicited_listener
Change-Id: I1f633be1802ab00c5746eec511757e92109401c9
parent b847977e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ cc_test_library {
    ],
    static_libs: [
        "dnsresolver_aidl_interface-lateststable-ndk",
        "netd_event_listener_interface-lateststable-ndk",
        "libutils",
    ],
}