summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2021-11-07 23:57:11 +0800
committer Yi Kong <yikong@google.com> 2021-11-07 23:57:50 +0800
commita31dda4e17f61aae0df48acf4ac4df0c916c5093 (patch)
treef77d78a5d0178c6114d231b40361ac3df943e042
parenta5438956b48f8845de3a1f6cc6ef55e00a498bb6 (diff)
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
-rw-r--r--system/stack/Android.bp5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/stack/Android.bp b/system/stack/Android.bp
index af32f29084..1117af2187 100644
--- a/system/stack/Android.bp
+++ b/system/stack/Android.bp
@@ -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",