diff --git a/libc/Android.bp b/libc/Android.bp index 61d99ac49..c94be6270 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1738,6 +1738,10 @@ cc_library { // 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 d843c4413..1a5439f34 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp @@ -124,6 +124,10 @@ cc_library { "//apex_available:platform", "com.android.runtime", ], + + lto: { + never: true, + }, } cc_library { @@ -200,6 +204,10 @@ cc_library { "//apex_available:platform", "com.android.runtime", ], + + lto: { + never: true, + }, } ndk_library { diff --git a/libm/Android.bp b/libm/Android.bp index 318a4bc04..7f9697557 100644 --- a/libm/Android.bp +++ b/libm/Android.bp @@ -506,6 +506,10 @@ cc_library { "//apex_available:platform", "com.android.runtime", ], + + lto: { + never: true, + }, } ndk_library { diff --git a/linker/Android.bp b/linker/Android.bp index 6c59cffdd..a8f258274 100644 --- a/linker/Android.bp +++ b/linker/Android.bp @@ -427,6 +427,10 @@ cc_library { "//apex_available:platform", "com.android.runtime", ], + + lto: { + never: true, + }, } cc_test {