Merge "Disable LTO for static linking with Rust-generated code" into main am: 790bbb9276 am: b75c0c1a77

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2996599

Change-Id: Ib9a00f341e77653c566002c3bf0e4f0c1c9d25a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>