toybox host binary: avoid ODR violations.

We were seeing crashes with both /lib/x86_64-linux-gnu/libcrypto.so.1.1
and our hermetic /home/enh_google_com/bin/../lib64/libcrypto-host.so in
the stack trace. Let's just take one of those (and preferably, "our
one"!)...

Bug: http://b/307849291
Test: `./toybox id` on an affected host
Change-Id: I6da2c8b0a911ddb2c3ecf3fc8c40e16ee65265d4
This commit is contained in:
Elliott Hughes 2023-11-01 19:04:47 +00:00
parent 0598e2643d
commit b24d9b776f

View File

@ -500,19 +500,24 @@ cc_defaults {
stl: "none",
shared_libs: [
"libcrypto",
"libz",
],
target: {
android: {
shared_libs: [
"libcrypto",
"liblog",
"libprocessgroup",
"libselinux",
],
symlinks: toybox_symlinks,
},
host: {
static_libs: [
"libcrypto",
],
},
},
}