diff options
author | Yi Kong <yikong@google.com> | 2021-11-05 18:38:09 +0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2021-11-05 17:41:30 +0000 |
commit | f42426ec380f66ccdf28e463c5386c3b611a6b94 (patch) | |
tree | 991f3c1f0299d83cad298fd9ec0ab239f9feaa91 | |
parent | b847977ee4aee61f737467ada9992a5a45ac6d77 (diff) | |
download | DnsResolver-f42426ec380f66ccdf28e463c5386c3b611a6b94.tar.gz |
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
-rw-r--r-- | tests/unsolicited_listener/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unsolicited_listener/Android.bp b/tests/unsolicited_listener/Android.bp index dc465c7c..981001b1 100644 --- a/tests/unsolicited_listener/Android.bp +++ b/tests/unsolicited_listener/Android.bp @@ -18,6 +18,7 @@ cc_test_library { ], static_libs: [ "dnsresolver_aidl_interface-lateststable-ndk", + "netd_event_listener_interface-lateststable-ndk", "libutils", ], } |