Skip to content
Snippets Groups Projects
Commit 52e4d674 authored by Yi Kong's avatar Yi Kong
Browse files

Fix build with global ThinLTO

These targets use 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 device-tests
Change-Id: I5e9387a92ea7d10dcd6f0aa5a002e567478a8cdb
parent 4cd9f204
No related branches found
No related tags found
No related merge requests found
......@@ -338,8 +338,10 @@ cc_test {
],
header_libs: ["libbluetooth_headers"],
shared_libs: [
"liblog",
"libbinder_ndk",
"libcrypto",
"libcutils",
"liblog",
],
static_libs: [
"libbluetooth-types",
......@@ -348,6 +350,13 @@ cc_test {
"libc++fs",
],
cflags: ["-DBUILDCFG"],
target: {
android: {
shared_libs: [
"android.system.suspend.control-V1-ndk",
],
},
},
}
// btif hf client service tests for target
......
......@@ -61,6 +61,10 @@ cc_test {
"tests/base/packet_builder_test.cc",
"tests/base/packet_test.cc",
],
shared_libs: [
"libbinder_ndk",
"libcrypto",
],
static_libs: [
"libgmock",
"lib-bt-packets",
......@@ -68,4 +72,11 @@ cc_test {
cflags: [
"-DBUILDCFG",
],
target: {
android: {
shared_libs: [
"android.system.suspend.control-V1-ndk",
],
},
},
}
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