diff options
-rw-r--r-- | libc/Android.bp | 9 | ||||
-rw-r--r-- | libm/Android.bp | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libc/Android.bp b/libc/Android.bp index 0ee353dd2..f49f14314 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1668,11 +1668,14 @@ cc_library { ldflags: ["-Wl,--hash-style=both"], version_script: ":libc.arm.map", + no_libcrt: true, shared: { srcs: [":libc_sources_shared_arm"], // special for arm cflags: ["-DCRT_LEGACY_WORKAROUND"], + // For backwards-compatibility, some arm32 builtins are exported from libc.so. + static_libs: ["libclang_rt.builtins-arm-android-exported"], }, // Arm 32 bit does not produce complete exidx unwind information @@ -1698,6 +1701,12 @@ cc_library { ldflags: ["-Wl,--hash-style=both"], version_script: ":libc.x86.map", + no_libcrt: true, + + shared: { + // For backwards-compatibility, some x86 builtins are exported from libc.so. + static_libs: ["libclang_rt.builtins-i686-android-exported"], + }, // Leave the symbols in the shared library so that stack unwinders can produce // meaningful name resolution. diff --git a/libm/Android.bp b/libm/Android.bp index 21be51ba0..735b1cf71 100644 --- a/libm/Android.bp +++ b/libm/Android.bp @@ -287,6 +287,11 @@ cc_library { pack_relocations: false, ldflags: ["-Wl,--hash-style=both"], version_script: ":libm.arm.map", + no_libcrt: true, + shared: { + // For backwards-compatibility, some arm32 builtins are exported from libm.so. + static_libs: ["libclang_rt.builtins-arm-android-exported"], + }, }, arm64: { |