Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment