From 6034df4abd2e036c8ee5aceee15cb365acf801de Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 1 Feb 2024 17:13:57 -0800 Subject: [PATCH] Remove libc_ndk. Literally unused! Test: treehugger Change-Id: Ic02c9573106444411af53c45ae4f818504a8254d --- libc/Android.bp | 69 ------------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/libc/Android.bp b/libc/Android.bp index eb11fbd97..d25671e60 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1371,75 +1371,6 @@ cc_library_static { cflags: ["-fno-builtin"], } -// ======================================================== -// libc_ndk.a -// Compatibility library for the NDK. This library contains -// all the parts of libc that are safe to statically link. -// We can't safely statically link things that can only run -// on a certain version of the OS. Examples include -// anything that talks to netd (a large portion of the DNS -// code) and anything that is dependent on the layout of a -// data structure that has changed across releases (such as -// pthread_t). -// ======================================================== - -cc_library_static { - name: "libc_ndk", - defaults: [ - "libc_defaults", - "libc_native_allocator_defaults", - ], - ramdisk_available: false, - vendor_ramdisk_available: false, - srcs: libc_common_src_files + [ - "bionic/gwp_asan_wrappers.cpp", - "bionic/heap_tagging.cpp", - "bionic/malloc_common.cpp", - "bionic/malloc_limit.cpp", - ], - multilib: { - lib32: { - srcs: libc_common_src_files_32, - }, - }, - arch: { - arm: { - srcs: [ - "arch-arm/bionic/exidx_dynamic.c", - "arch-common/bionic/crtbegin_so.c", - "arch-arm/bionic/atexit_legacy.c", - "arch-common/bionic/crtend_so.S", - ], - }, - }, - - cflags: [ - "-fvisibility=hidden", - "-DLIBC_STATIC", - ], - - whole_static_libs: [ - "gwp_asan", - "gwp_asan_crash_handler", - "libarm-optimized-routines-string", - "libasync_safe", - "libc_bionic_ndk", - "libc_bootstrap", - "libc_fortify", - "libc_freebsd", - "libc_freebsd_large_stack", - "libc_freebsd_ldexp", - "libc_gdtoa", - "libc_netbsd", - "libc_openbsd_large_stack", - "libc_openbsd_ndk", - "libc_syscalls", - "libc_tzcode", - "libm", - "libstdc++", - ], -} - // ======================================================== // libc_common.a // ========================================================