diff options
| author | 2023-03-30 03:47:36 +0000 | |
|---|---|---|
| committer | 2023-03-30 05:23:31 +0000 | |
| commit | 1ac740cf5d25f8538129ec9ba6bd620ad02a3c74 (patch) | |
| tree | 76f5b6225fe36faf10b55f5f3229f40a86bbdbf0 | |
| parent | c4a353c0ad052e95bfce5958f2de25307fa32106 (diff) | |
binderRpcTest: Use --whole-archive on Trusty
Fix test failures for BinderRpcTest on Trusty caused
by TEST_P code getting discarded by the linker because
the Trusty build system puts all object files in archives.
The fix is to use --whole-archive for binderRpcTest so
that all objects get linked.
Bug: 275620340
Test: binderRpcTest on Trusty
Change-Id: I9e3959c428ce6d8a39e0e0595a82ad5e8c3a43e2
| -rw-r--r-- | libs/binder/trusty/binderRpcTest/rules.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/trusty/binderRpcTest/rules.mk b/libs/binder/trusty/binderRpcTest/rules.mk index ae3949246d..975f689d1a 100644 --- a/libs/binder/trusty/binderRpcTest/rules.mk +++ b/libs/binder/trusty/binderRpcTest/rules.mk @@ -32,4 +32,8 @@ MODULE_LIBRARY_DEPS += \ trusty/user/base/lib/googletest \ trusty/user/base/lib/libstdc++-trusty \ +# TEST_P tests from binderRpcUniversalTests.cpp don't get linked in +# unless we pass in --whole-archive to the linker (b/275620340). +MODULE_USE_WHOLE_ARCHIVE := true + include make/trusted_app.mk |