libnativebridge_test: link non-public libs statically
Non-public NDK libs are not supposed to be tested in CTS. Specifically
native-bridged execution (e.g. arm on x86) doesn't support this.
Test: cts-tradefed run cts -m art_libnativebridge_cts_tests (arm on x86)
Test: art/libnativebridge/tests/runtests.sh
Bug: b/268440713
Change-Id: I991688e44a5fa5083e26372e408a9e3343e78b18
Merged-In: I991688e44a5fa5083e26372e408a9e3343e78b18
(cherry picked from commit 7f5b3d89f21edd958ddb9d7bd01e03c77bd5425a)
diff --git a/libnativebridge/tests/Android.bp b/libnativebridge/tests/Android.bp
index b787fba..2f36f52 100644
--- a/libnativebridge/tests/Android.bp
+++ b/libnativebridge/tests/Android.bp
@@ -166,9 +166,12 @@
"NeedsNativeBridge_test.cpp",
"UnavailableNativeBridge_test.cpp",
],
+ static_libs: [
+ "libdl_android",
+ "libnativebridge",
+ ],
shared_libs: [
"liblog",
- "libnativebridge",
],
header_libs: ["libbase_headers"],