Workaround global ThinLTO breakage
The device does not boot with global ThinLTO enabled for
libcodec2_hidl_client@1.1. Disable LTO for it to workaround the issue.
Test: GLOBAL_THINLTO=true m
Test: boot
Bug: 170595429
Change-Id: I636a1c4c778a8aeaad59af571f7ad33b37374489
diff --git a/media/codec2/hidl/1.1/utils/Android.bp b/media/codec2/hidl/1.1/utils/Android.bp
index 386f6e2..ab8635b 100644
--- a/media/codec2/hidl/1.1/utils/Android.bp
+++ b/media/codec2/hidl/1.1/utils/Android.bp
@@ -44,6 +44,12 @@
"libstagefright_bufferpool@2.0.1",
"libui",
],
+
+ // Device does not boot when global ThinLTO is enabled for this library.
+ // http://b/170595429
+ lto: {
+ never: true,
+ },
}