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
diff --git a/libs/binder/trusty/binderRpcTest/rules.mk b/libs/binder/trusty/binderRpcTest/rules.mk
index ae39492..975f689 100644
--- a/libs/binder/trusty/binderRpcTest/rules.mk
+++ b/libs/binder/trusty/binderRpcTest/rules.mk
@@ -32,4 +32,8 @@
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