trusty: fuzz: Link to libtrusty dynamically

libtrusty can be depended on by multiple thing in a fuzzer's
dependencies tree. It's no longer convenient to link to statically.

Leave tests statically linked. Test infra doesn't seem to handle shared
test libs correctly.

Bug: 171750250
Test: trusty_test_fuzzer libtrusty_coverage_test
Change-Id: Ic7d003151e43fb5bab63354fd42ea9667332743f
This commit is contained in:
Tri Vo 2021-02-19 21:57:26 -08:00
parent 2c41c142ed
commit cb89889af3
2 changed files with 3 additions and 5 deletions

View File

@ -25,14 +25,11 @@ cc_library {
export_include_dirs: [
"include",
],
static_libs: [
"libtrusty",
],
shared_libs: [
"libbase",
"liblog",
"libdmabufheap",
"libtrusty",
],
}

View File

@ -19,6 +19,7 @@ package {
cc_defaults {
name: "trusty_fuzzer_defaults",
shared_libs: [
"libtrusty",
"libtrusty_coverage",
"libtrusty_fuzz_utils",
"libbase",
@ -43,11 +44,11 @@ cc_library {
export_include_dirs: ["include"],
static_libs: [
"libFuzzer",
"libtrusty",
],
shared_libs: [
"libtrusty_coverage",
"libbase",
"liblog",
"libtrusty",
],
}