Workaround app compat issue introduced by global ThinLTO optimization

Several obfuscation libraries do not work with ThinLTO optimized bionic
linker. Given we switched on the optimization late in the 24Q3 (V)
release cycle, apply the local opt-out to avoid breaking the apps.

This workaround will be removed in the following Android release.

Test: manual
Bug: 352456802
Change-Id: Ib3902b7985acce8f1c021c230b67aea821ee8dd2
diff --git a/linker/Android.bp b/linker/Android.bp
index 694d1f5..a04b13c 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -410,6 +410,10 @@
     },
 
     afdo: true,
+
+    // FIXME: Workaround compat issue with obfuscation libraries.
+    // http://b/352456802
+    lto_O0: true,
 }
 
 // ========================================================