summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2022-04-12 19:01:28 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-04-12 19:01:28 +0000
commit67506730c7a6b3fe9ca0217d36e0aa51eac400f4 (patch)
tree16de0257906eded5b58a4f2938ab5726815911e6
parent04b0aa091683b4d6f5a3ed8e035ecf34042777db (diff)
parent00087b4f303765c6303a5a4314d06828cbf4989f (diff)
downloadboringssl-67506730c7a6b3fe9ca0217d36e0aa51eac400f4.tar.gz
Use static libraries for libcrypto and libssl native tests. am: 00087b4f30
Original change: https://android-review.googlesource.com/c/platform/external/boringssl/+/2061407 Change-Id: I612d2626f43bd76efad81237d9757062ef96f14b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index daec62ce..84c70c72 100644
--- a/Android.bp
+++ b/Android.bp
@@ -510,7 +510,9 @@ cc_test {
"boringssl_flags",
],
whole_static_libs: ["boringssl_test_support"],
- shared_libs: ["libcrypto"],
+ // Statically link the library to test to ensure we always pick up the
+ // correct version regardless of device linker configuration.
+ static_libs: ["libcrypto_static"],
target: {
android: {
test_suites: ["mts-conscrypt"],
@@ -537,9 +539,10 @@ cc_test {
"boringssl_flags",
],
whole_static_libs: ["boringssl_test_support"],
-
- shared_libs: [
- "libcrypto",
+ // Statically link the libraries to test to ensure we always pick up the
+ // correct version regardless of device linker configuration.
+ static_libs: [
+ "libcrypto_static",
"libssl",
],
target: {