No global ThinLTO for bionic

There are multiple build breakages with bionic when we enable ThinLTO
globally. Opt bionic out of ThinLTO for now.

#global-thinlto-opt-out

Test: TreeHugger
Bug: 169004486
Change-Id: I546a8074f9c3e0ddbd01d3b7cd730e215e3c0c49
diff --git a/libc/Android.bp b/libc/Android.bp
index 61d99ac..c94be62 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -1738,6 +1738,10 @@
     // Sorting bss symbols by size usually results in less dirty pages at run
     // time, because small symbols are grouped together.
     sort_bss_symbols_by_size: true,
+
+    lto: {
+        never: true,
+    },
 }
 
 genrule {
diff --git a/libdl/Android.bp b/libdl/Android.bp
index d843c44..1a5439f 100644
--- a/libdl/Android.bp
+++ b/libdl/Android.bp
@@ -124,6 +124,10 @@
         "//apex_available:platform",
         "com.android.runtime",
     ],
+
+    lto: {
+        never: true,
+    },
 }
 
 cc_library {
@@ -200,6 +204,10 @@
         "//apex_available:platform",
         "com.android.runtime",
     ],
+
+    lto: {
+        never: true,
+    },
 }
 
 ndk_library {
diff --git a/libm/Android.bp b/libm/Android.bp
index 318a4bc..7f96975 100644
--- a/libm/Android.bp
+++ b/libm/Android.bp
@@ -506,6 +506,10 @@
         "//apex_available:platform",
         "com.android.runtime",
     ],
+
+    lto: {
+        never: true,
+    },
 }
 
 ndk_library {
diff --git a/linker/Android.bp b/linker/Android.bp
index 6c59cff..a8f2582 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -427,6 +427,10 @@
         "//apex_available:platform",
         "com.android.runtime",
     ],
+
+    lto: {
+        never: true,
+    },
 }
 
 cc_test {