Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ac740cf authored by Andrei Homescu's avatar Andrei Homescu
Browse files

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
parent c4a353c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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