diff options
author | Pete Bentley <prb@google.com> | 2022-04-11 12:43:46 +0100 |
---|---|---|
committer | Pete Bentley <prb@google.com> | 2022-04-11 12:00:13 +0000 |
commit | 00087b4f303765c6303a5a4314d06828cbf4989f (patch) | |
tree | 16de0257906eded5b58a4f2938ab5726815911e6 | |
parent | ea823ff68de78c10d2545416043e6d4e77b01204 (diff) | |
download | boringssl-00087b4f303765c6303a5a4314d06828cbf4989f.tar.gz |
Use static libraries for libcrypto and libssl native tests.
The tests run from /data/local/tmp and likely to pick up
libraries from the sustem partition (or not in some libssl cases)
rather than the APEX.
Fixes: 228778981
Test: atest boringssl_crypto_tests boringssl_ssl_tests
Change-Id: I0429686a87723447179a6cf32c6f9d4f1a7e7fc1
-rw-r--r-- | Android.bp | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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: { |