2013-09-26 12:37:10 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-09-23 19:44:01 +02:00
|
|
|
bionic_coverage := false
|
|
|
|
|
2013-10-03 22:26:22 +02:00
|
|
|
# Make everything depend on any changes to included makefiles.
|
2014-01-24 00:17:50 +01:00
|
|
|
libc_common_additional_dependencies := $(LOCAL_PATH)/Android.mk
|
|
|
|
|
|
|
|
# Load config for TARGET_ARCH
|
|
|
|
my_2nd_arch_prefix :=
|
|
|
|
include $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
|
|
|
|
libc_common_additional_dependencies += \
|
|
|
|
$(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
|
|
|
|
|
|
|
|
|
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
# Load config for TARGET_2ND_ARCH
|
|
|
|
my_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
|
|
|
include $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
|
|
|
|
my_2nd_arch_prefix :=
|
|
|
|
libc_common_additional_dependencies += \
|
|
|
|
$(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
# crt obj files
|
|
|
|
# ========================================================
|
|
|
|
# crtbrand.c needs <stdint.h> and a #define for the platform SDK version.
|
|
|
|
libc_crt_target_cflags := \
|
|
|
|
-I$(LOCAL_PATH)/include \
|
|
|
|
-DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
|
|
|
|
|
|
|
|
my_2nd_arch_prefix :=
|
|
|
|
include $(LOCAL_PATH)/crt.mk
|
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
my_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
|
|
|
include $(LOCAL_PATH)/crt.mk
|
|
|
|
my_2nd_arch_prefix :=
|
|
|
|
endif
|
2013-10-03 22:26:22 +02:00
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# Define the common source files for all the libc instances
|
|
|
|
# =========================================================
|
2009-03-04 04:28:35 +01:00
|
|
|
libc_common_src_files := \
|
2014-02-13 01:40:55 +01:00
|
|
|
bionic/bindresvport.c \
|
|
|
|
bionic/ether_aton.c \
|
|
|
|
bionic/ether_ntoa.c \
|
|
|
|
bionic/fts.c \
|
|
|
|
bionic/getpriority.c \
|
|
|
|
bionic/if_indextoname.c \
|
|
|
|
bionic/if_nametoindex.c \
|
|
|
|
bionic/initgroups.c \
|
|
|
|
bionic/ioctl.c \
|
|
|
|
bionic/isatty.c \
|
|
|
|
bionic/memmem.c \
|
|
|
|
bionic/pututline.c \
|
|
|
|
bionic/sched_cpualloc.c \
|
|
|
|
bionic/sched_cpucount.c \
|
|
|
|
bionic/sigblock.c \
|
|
|
|
bionic/siginterrupt.c \
|
|
|
|
bionic/sigsetmask.c \
|
|
|
|
bionic/system_properties_compat.c \
|
2014-11-03 21:32:17 +01:00
|
|
|
stdio/findfp.c \
|
2014-12-02 01:13:30 +01:00
|
|
|
stdio/fread.c \
|
2014-02-12 04:57:06 +01:00
|
|
|
stdio/snprintf.c\
|
|
|
|
stdio/sprintf.c \
|
2015-01-21 01:18:32 +01:00
|
|
|
stdio/stdio.c \
|
2014-08-20 02:00:33 +02:00
|
|
|
stdio/stdio_ext.cpp \
|
2014-11-21 05:47:02 +01:00
|
|
|
stdlib/atexit.c \
|
2015-04-16 00:31:51 +02:00
|
|
|
stdlib/exit.c \
|
2013-10-10 00:50:50 +02:00
|
|
|
|
2013-08-01 22:13:33 +02:00
|
|
|
# Fortify implementations of libc functions.
|
|
|
|
libc_common_src_files += \
|
2013-10-03 01:11:30 +02:00
|
|
|
bionic/__FD_chk.cpp \
|
2013-08-01 22:13:33 +02:00
|
|
|
bionic/__fgets_chk.cpp \
|
2015-04-18 00:16:57 +02:00
|
|
|
bionic/__memchr_chk.cpp \
|
2013-08-01 22:13:33 +02:00
|
|
|
bionic/__memmove_chk.cpp \
|
2015-04-18 00:16:57 +02:00
|
|
|
bionic/__memrchr_chk.cpp \
|
2015-02-02 18:15:19 +01:00
|
|
|
bionic/__poll_chk.cpp \
|
2015-04-16 15:07:45 +02:00
|
|
|
bionic/__pread64_chk.cpp \
|
|
|
|
bionic/__pread_chk.cpp \
|
2013-10-10 05:16:34 +02:00
|
|
|
bionic/__read_chk.cpp \
|
2015-04-17 17:26:36 +02:00
|
|
|
bionic/__readlink_chk.cpp \
|
|
|
|
bionic/__readlinkat_chk.cpp \
|
2013-09-25 01:32:07 +02:00
|
|
|
bionic/__recvfrom_chk.cpp \
|
2014-04-04 23:38:18 +02:00
|
|
|
bionic/__stpcpy_chk.cpp \
|
|
|
|
bionic/__stpncpy_chk.cpp \
|
2013-08-01 22:13:33 +02:00
|
|
|
bionic/__strchr_chk.cpp \
|
|
|
|
bionic/__strlcat_chk.cpp \
|
|
|
|
bionic/__strlcpy_chk.cpp \
|
|
|
|
bionic/__strlen_chk.cpp \
|
|
|
|
bionic/__strncat_chk.cpp \
|
|
|
|
bionic/__strncpy_chk.cpp \
|
|
|
|
bionic/__strrchr_chk.cpp \
|
|
|
|
bionic/__umask_chk.cpp \
|
|
|
|
bionic/__vsnprintf_chk.cpp \
|
|
|
|
bionic/__vsprintf_chk.cpp \
|
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_bionic_ndk_src_files := \
|
2013-06-12 23:05:46 +02:00
|
|
|
bionic/abort.cpp \
|
2014-05-14 00:40:26 +02:00
|
|
|
bionic/accept.cpp \
|
2014-05-19 22:39:57 +02:00
|
|
|
bionic/accept4.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/access.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/assert.cpp \
|
2014-03-13 00:12:57 +01:00
|
|
|
bionic/atof.cpp \
|
2014-07-22 00:38:06 +02:00
|
|
|
bionic/bionic_systrace.cpp \
|
2013-10-25 00:15:14 +02:00
|
|
|
bionic/bionic_time_conversions.cpp \
|
2013-02-06 01:10:59 +01:00
|
|
|
bionic/brk.cpp \
|
2014-06-02 20:33:04 +02:00
|
|
|
bionic/c16rtomb.cpp \
|
|
|
|
bionic/c32rtomb.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/chmod.cpp \
|
|
|
|
bionic/chown.cpp \
|
2014-04-23 02:41:00 +02:00
|
|
|
bionic/clearenv.cpp \
|
2014-03-11 21:37:11 +01:00
|
|
|
bionic/clock.cpp \
|
2014-11-26 23:04:26 +01:00
|
|
|
bionic/clock_getcpuclockid.cpp \
|
2014-10-12 17:50:47 +02:00
|
|
|
bionic/clock_nanosleep.cpp \
|
2013-11-19 22:31:58 +01:00
|
|
|
bionic/clone.cpp \
|
2015-04-23 06:40:38 +02:00
|
|
|
bionic/close.cpp \
|
2014-07-10 13:47:13 +02:00
|
|
|
bionic/__cmsg_nxthdr.cpp \
|
2014-05-12 20:19:16 +02:00
|
|
|
bionic/connect.cpp \
|
2014-07-10 00:51:34 +02:00
|
|
|
bionic/ctype.cpp \
|
2012-10-29 15:32:54 +01:00
|
|
|
bionic/dirent.cpp \
|
2013-10-23 18:48:29 +02:00
|
|
|
bionic/dup2.cpp \
|
|
|
|
bionic/epoll_create.cpp \
|
2013-10-25 00:15:14 +02:00
|
|
|
bionic/epoll_pwait.cpp \
|
2014-02-12 04:57:06 +01:00
|
|
|
bionic/epoll_wait.cpp \
|
2013-10-09 03:50:24 +02:00
|
|
|
bionic/__errno.cpp \
|
2015-01-25 03:36:29 +01:00
|
|
|
bionic/error.cpp \
|
2013-04-03 05:29:40 +02:00
|
|
|
bionic/eventfd_read.cpp \
|
|
|
|
bionic/eventfd_write.cpp \
|
Fix "faccessat ignores flags"
The kernel system call faccessat() does not have any flags arguments,
so passing flags to the kernel is currently ignored.
Fix the kernel system call so that no flags argument is passed in.
Ensure that we don't support AT_SYMLINK_NOFOLLOW. This non-POSIX
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html)
flag is a glibc extension, and has non-intuitive, error prone behavior.
For example, consider the following code:
symlink("foo.is.dangling", "foo");
if (faccessat(AT_FDCWD, "foo", R_OK, AT_SYMLINK_NOFOLLOW) == 0) {
int fd = openat(AT_FDCWD, "foo", O_RDONLY | O_NOFOLLOW);
}
The faccessat() call in glibc will return true, but an attempt to
open the dangling symlink will end up failing. GLIBC documents this
as returning the access mode of the symlink itself, which will
always return true for any symlink on Linux.
Some further discussions of this are at:
* http://lists.landley.net/pipermail/toybox-landley.net/2014-September/003617.html
* http://permalink.gmane.org/gmane.linux.lib.musl.general/6952
AT_SYMLINK_NOFOLLOW seems broken by design. I suspect this is why this
function was never added to POSIX. (note that "access" is pretty much
broken by design too, since it introduces a race condition between
check and action). We shouldn't support this until it's clearly
documented by POSIX or we can have it produce intuitive results.
Don't support AT_EACCESS for now. Implementing it is complicated, and
pretty much useless on Android, since we don't have setuid binaries.
See http://git.musl-libc.org/cgit/musl/commit/?id=0a05eace163cee9b08571d2ff9d90f5e82d9c228
for how an implementation might look.
Bug: 18867827
Change-Id: I25b86c5020f3152ffa3ac3047f6c4152908d0e04
2015-02-24 22:40:43 +01:00
|
|
|
bionic/faccessat.cpp \
|
Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support
Many libc functions have an option to not follow symbolic
links. This is useful to avoid security sensitive code
from inadvertantly following attacker supplied symlinks
and taking inappropriate action on files it shouldn't.
For example, open() has O_NOFOLLOW, chown() has
lchown(), stat() has lstat(), etc.
There is no such equivalent function for chmod(), such as lchmod().
To address this, POSIX introduced fchmodat(AT_SYMLINK_NOFOLLOW),
which is intended to provide a way to perform a chmod operation
which doesn't follow symlinks.
Currently, the Linux kernel doesn't implement AT_SYMLINK_NOFOLLOW.
In GLIBC, attempting to use the AT_SYMLINK_NOFOLLOW flag causes
fchmodat to return ENOTSUP. Details are in "man fchmodat".
Bionic currently differs from GLIBC in that AT_SYMLINK_NOFOLLOW
is silently ignored and treated as if the flag wasn't present.
This patch provides a userspace implementation of
AT_SYMLINK_NOFOLLOW for bionic. Using open(O_PATH | O_NOFOLLOW),
we can provide a way to atomically change the permissions on
files without worrying about race conditions.
As part of this change, we add support for fchmod on O_PATH
file descriptors, because it's relatively straight forward
and could be useful in the future.
The basic idea behind this implementation comes from
https://sourceware.org/bugzilla/show_bug.cgi?id=14578 , specifically
comment #10.
Change-Id: I1eba0cdb2c509d9193ceecf28f13118188a3cfa7
2015-02-01 04:57:46 +01:00
|
|
|
bionic/fchmod.cpp \
|
|
|
|
bionic/fchmodat.cpp \
|
2013-10-25 01:29:40 +02:00
|
|
|
bionic/ffs.cpp \
|
2015-05-31 22:43:13 +02:00
|
|
|
bionic/fgetxattr.cpp \
|
2015-06-06 20:23:26 +02:00
|
|
|
bionic/flistxattr.cpp \
|
2014-02-25 03:00:43 +01:00
|
|
|
bionic/flockfile.cpp \
|
Reimplement isinf/isnan/fpclassify.
Also move isinf and isnan into libc like everyone else.
Also move fpclassify to libc like the BSDs (but unlike glibc). We need
this to be able to upgrade our float/double/long double parsing to gdtoa.
Also add some missing aliases. We now have all of:
isnan, __isnan, isnanf, __isnanf, isnanl, __isnanl,
isinf, __isinf, isinff, __isinff, isinfl, __isinfl,
__fpclassify, __fpclassifyd, __fpclassifyf, __fpclassifyl.
Bug: 13469877
Change-Id: I407ffbac06c765a6c5fffda8106c37d7db04f27d
2014-04-12 02:02:20 +02:00
|
|
|
bionic/fpclassify.cpp \
|
2015-05-31 22:43:13 +02:00
|
|
|
bionic/fsetxattr.cpp \
|
2015-05-20 03:17:31 +02:00
|
|
|
bionic/ftruncate.cpp \
|
2013-08-09 02:13:33 +02:00
|
|
|
bionic/futimens.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/getcwd.cpp \
|
2014-10-30 09:34:55 +01:00
|
|
|
bionic/gethostname.cpp \
|
2014-03-11 01:17:01 +01:00
|
|
|
bionic/getpgrp.cpp \
|
2014-06-20 01:39:01 +02:00
|
|
|
bionic/getpid.cpp \
|
2014-05-31 04:00:03 +02:00
|
|
|
bionic/gettid.cpp \
|
2014-08-19 23:30:30 +02:00
|
|
|
bionic/__gnu_basename.cpp \
|
2013-10-23 18:48:29 +02:00
|
|
|
bionic/inotify_init.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/lchown.cpp \
|
2014-02-21 16:11:03 +01:00
|
|
|
bionic/lfs64_support.cpp \
|
2014-04-30 18:45:40 +02:00
|
|
|
bionic/__libc_current_sigrtmax.cpp \
|
|
|
|
bionic/__libc_current_sigrtmin.cpp \
|
2013-03-15 23:30:25 +01:00
|
|
|
bionic/libc_logging.cpp \
|
2012-10-29 22:27:10 +01:00
|
|
|
bionic/libgen.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/link.cpp \
|
2014-04-08 23:34:12 +02:00
|
|
|
bionic/locale.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/lstat.cpp \
|
2014-08-20 18:16:57 +02:00
|
|
|
bionic/malloc_info.cpp \
|
2014-06-02 20:33:04 +02:00
|
|
|
bionic/mbrtoc16.cpp \
|
|
|
|
bionic/mbrtoc32.cpp \
|
|
|
|
bionic/mbstate.cpp \
|
2015-02-19 06:29:13 +01:00
|
|
|
bionic/mempcpy.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/mkdir.cpp \
|
2013-10-22 19:54:11 +02:00
|
|
|
bionic/mkfifo.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/mknod.cpp \
|
2014-05-13 19:44:07 +02:00
|
|
|
bionic/mntent.cpp \
|
2014-05-14 02:24:03 +02:00
|
|
|
bionic/NetdClientDispatch.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/open.cpp \
|
2014-09-22 23:49:07 +02:00
|
|
|
bionic/pathconf.cpp \
|
2013-10-25 00:15:14 +02:00
|
|
|
bionic/pause.cpp \
|
2013-10-23 18:48:29 +02:00
|
|
|
bionic/pipe.cpp \
|
2013-10-25 00:15:14 +02:00
|
|
|
bionic/poll.cpp \
|
2014-09-11 02:39:00 +02:00
|
|
|
bionic/posix_fadvise.cpp \
|
2014-02-04 01:20:46 +01:00
|
|
|
bionic/posix_fallocate.cpp \
|
2014-11-26 05:17:27 +01:00
|
|
|
bionic/posix_madvise.cpp \
|
2014-03-05 00:58:02 +01:00
|
|
|
bionic/posix_timers.cpp \
|
2013-10-30 22:40:09 +01:00
|
|
|
bionic/ptrace.cpp \
|
2014-07-26 02:24:00 +02:00
|
|
|
bionic/pty.cpp \
|
2012-12-08 03:41:10 +01:00
|
|
|
bionic/raise.cpp \
|
2014-07-14 20:57:03 +02:00
|
|
|
bionic/rand.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/readlink.cpp \
|
2014-02-17 21:33:16 +01:00
|
|
|
bionic/reboot.cpp \
|
2014-03-11 01:17:01 +01:00
|
|
|
bionic/recv.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/rename.cpp \
|
|
|
|
bionic/rmdir.cpp \
|
2013-02-25 22:14:31 +01:00
|
|
|
bionic/scandir.cpp \
|
2013-04-09 18:57:42 +02:00
|
|
|
bionic/sched_getaffinity.cpp \
|
2014-01-02 21:05:50 +01:00
|
|
|
bionic/sched_getcpu.cpp \
|
2014-09-19 01:11:59 +02:00
|
|
|
bionic/semaphore.cpp \
|
2014-03-11 01:17:01 +01:00
|
|
|
bionic/send.cpp \
|
2013-10-10 02:35:36 +02:00
|
|
|
bionic/setegid.cpp \
|
2012-11-30 20:58:57 +01:00
|
|
|
bionic/__set_errno.cpp \
|
2013-10-10 02:35:36 +02:00
|
|
|
bionic/seteuid.cpp \
|
2014-03-13 00:12:57 +01:00
|
|
|
bionic/setpgrp.cpp \
|
2013-10-17 07:27:54 +02:00
|
|
|
bionic/sigaction.cpp \
|
|
|
|
bionic/sigaddset.cpp \
|
|
|
|
bionic/sigdelset.cpp \
|
|
|
|
bionic/sigemptyset.cpp \
|
|
|
|
bionic/sigfillset.cpp \
|
|
|
|
bionic/sigismember.cpp \
|
|
|
|
bionic/signal.cpp \
|
2014-02-12 04:57:06 +01:00
|
|
|
bionic/signalfd.cpp \
|
2013-10-16 21:53:58 +02:00
|
|
|
bionic/sigpending.cpp \
|
2013-10-15 20:23:57 +02:00
|
|
|
bionic/sigprocmask.cpp \
|
2014-12-02 02:41:04 +01:00
|
|
|
bionic/sigqueue.cpp \
|
2013-10-16 03:01:56 +02:00
|
|
|
bionic/sigsuspend.cpp \
|
2014-12-02 02:41:04 +01:00
|
|
|
bionic/sigtimedwait.cpp \
|
2013-01-10 23:42:14 +01:00
|
|
|
bionic/sigwait.cpp \
|
2014-12-02 02:41:04 +01:00
|
|
|
bionic/sigwaitinfo.cpp \
|
2014-05-19 22:39:57 +02:00
|
|
|
bionic/socket.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/stat.cpp \
|
2013-07-09 22:25:03 +02:00
|
|
|
bionic/statvfs.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/strerror.cpp \
|
|
|
|
bionic/strerror_r.cpp \
|
|
|
|
bionic/strsignal.cpp \
|
2014-03-13 00:12:57 +01:00
|
|
|
bionic/strtold.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/stubs.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/symlink.cpp \
|
2014-11-15 00:51:58 +01:00
|
|
|
bionic/sysinfo.cpp \
|
2014-07-22 01:35:24 +02:00
|
|
|
bionic/syslog.cpp \
|
2014-02-12 04:57:06 +01:00
|
|
|
bionic/sys_siglist.c \
|
|
|
|
bionic/sys_signame.c \
|
2014-03-13 00:12:57 +01:00
|
|
|
bionic/system_properties.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/tdestroy.cpp \
|
2014-03-12 00:06:23 +01:00
|
|
|
bionic/termios.cpp \
|
2014-06-21 07:49:20 +02:00
|
|
|
bionic/thread_private.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/tmpfile.cpp \
|
2014-03-11 01:17:01 +01:00
|
|
|
bionic/umount.cpp \
|
2013-10-22 22:28:46 +02:00
|
|
|
bionic/unlink.cpp \
|
|
|
|
bionic/utimes.cpp \
|
2013-03-21 23:43:53 +01:00
|
|
|
bionic/wait.cpp \
|
2012-10-26 05:55:23 +02:00
|
|
|
bionic/wchar.cpp \
|
2014-05-01 07:03:12 +02:00
|
|
|
bionic/wctype.cpp \
|
2015-02-19 06:29:13 +01:00
|
|
|
bionic/wmempcpy.cpp \
|
2012-10-23 02:05:27 +02:00
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_bionic_src_files :=
|
|
|
|
|
|
|
|
# The fork implementation depends on pthread data, so we can't include it in
|
|
|
|
# libc_ndk.a.
|
|
|
|
libc_bionic_src_files += bionic/fork.cpp
|
|
|
|
|
|
|
|
# The data that backs getauxval is initialized in the libc init functions which
|
|
|
|
# are invoked by the linker. If this file is included in libc_ndk.a, only one of
|
|
|
|
# the copies of the global data will be initialized, resulting in nullptr
|
|
|
|
# dereferences.
|
|
|
|
libc_bionic_src_files += bionic/getauxval.cpp
|
|
|
|
|
2015-02-13 01:35:09 +01:00
|
|
|
# These three require getauxval, which isn't available on older platforms.
|
|
|
|
libc_bionic_src_files += bionic/getentropy_linux.c
|
|
|
|
libc_bionic_src_files += bionic/sysconf.cpp
|
|
|
|
libc_bionic_src_files += bionic/vdso.cpp
|
|
|
|
|
2014-08-15 23:20:04 +02:00
|
|
|
libc_cxa_src_files := \
|
|
|
|
bionic/__cxa_guard.cpp \
|
|
|
|
bionic/__cxa_pure_virtual.cpp \
|
|
|
|
bionic/new.cpp \
|
|
|
|
|
2013-03-02 01:59:46 +01:00
|
|
|
libc_upstream_freebsd_src_files := \
|
2014-03-11 00:23:09 +01:00
|
|
|
upstream-freebsd/lib/libc/gen/ldexp.c \
|
2013-11-21 01:09:06 +01:00
|
|
|
upstream-freebsd/lib/libc/gen/sleep.c \
|
|
|
|
upstream-freebsd/lib/libc/gen/usleep.c \
|
2013-08-12 21:07:05 +02:00
|
|
|
upstream-freebsd/lib/libc/stdlib/abs.c \
|
2013-06-25 23:48:10 +02:00
|
|
|
upstream-freebsd/lib/libc/stdlib/getopt_long.c \
|
2013-08-12 21:07:05 +02:00
|
|
|
upstream-freebsd/lib/libc/stdlib/imaxabs.c \
|
|
|
|
upstream-freebsd/lib/libc/stdlib/imaxdiv.c \
|
|
|
|
upstream-freebsd/lib/libc/stdlib/labs.c \
|
|
|
|
upstream-freebsd/lib/libc/stdlib/llabs.c \
|
2013-04-12 03:08:34 +02:00
|
|
|
upstream-freebsd/lib/libc/stdlib/qsort.c \
|
2014-04-30 02:49:06 +02:00
|
|
|
upstream-freebsd/lib/libc/stdlib/quick_exit.c \
|
2013-03-02 01:59:46 +01:00
|
|
|
upstream-freebsd/lib/libc/stdlib/realpath.c \
|
2013-03-02 03:35:56 +01:00
|
|
|
upstream-freebsd/lib/libc/string/wcpcpy.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcpncpy.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscasecmp.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscspn.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsdup.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcslcat.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsncasecmp.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsncat.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsncmp.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsncpy.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsnlen.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcspbrk.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsspn.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcstok.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wmemchr.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wmemset.c \
|
2013-03-02 01:59:46 +01:00
|
|
|
|
2012-08-10 20:39:58 +02:00
|
|
|
libc_upstream_netbsd_src_files := \
|
2014-06-12 20:48:04 +02:00
|
|
|
upstream-netbsd/common/lib/libc/stdlib/random.c \
|
2014-02-20 23:15:09 +01:00
|
|
|
upstream-netbsd/lib/libc/gen/ftw.c \
|
|
|
|
upstream-netbsd/lib/libc/gen/nftw.c \
|
|
|
|
upstream-netbsd/lib/libc/gen/nice.c \
|
|
|
|
upstream-netbsd/lib/libc/gen/popen.c \
|
|
|
|
upstream-netbsd/lib/libc/gen/psignal.c \
|
|
|
|
upstream-netbsd/lib/libc/gen/utime.c \
|
2014-03-11 00:32:35 +01:00
|
|
|
upstream-netbsd/lib/libc/gen/utmp.c \
|
2014-06-30 21:03:43 +02:00
|
|
|
upstream-netbsd/lib/libc/inet/nsap_addr.c \
|
2014-02-20 23:15:09 +01:00
|
|
|
upstream-netbsd/lib/libc/regex/regcomp.c \
|
|
|
|
upstream-netbsd/lib/libc/regex/regerror.c \
|
|
|
|
upstream-netbsd/lib/libc/regex/regexec.c \
|
|
|
|
upstream-netbsd/lib/libc/regex/regfree.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/bsearch.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/div.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/drand48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/erand48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/jrand48.c \
|
2014-11-06 21:40:08 +01:00
|
|
|
upstream-netbsd/lib/libc/stdlib/lcong48.c \
|
2014-02-20 23:15:09 +01:00
|
|
|
upstream-netbsd/lib/libc/stdlib/ldiv.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/lldiv.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/lrand48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/mrand48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/nrand48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/_rand48.c \
|
2014-06-12 20:48:04 +02:00
|
|
|
upstream-netbsd/lib/libc/stdlib/rand_r.c \
|
2014-02-20 23:15:09 +01:00
|
|
|
upstream-netbsd/lib/libc/stdlib/seed48.c \
|
|
|
|
upstream-netbsd/lib/libc/stdlib/srand48.c \
|
|
|
|
upstream-netbsd/lib/libc/string/memccpy.c \
|
|
|
|
upstream-netbsd/lib/libc/string/strcasestr.c \
|
|
|
|
upstream-netbsd/lib/libc/string/strcoll.c \
|
|
|
|
upstream-netbsd/lib/libc/string/strxfrm.c \
|
2012-08-10 20:39:58 +02:00
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
libc_upstream_openbsd_gdtoa_src_files := \
|
2014-04-22 02:13:46 +02:00
|
|
|
upstream-openbsd/android/gdtoa_support.cpp \
|
2014-04-11 02:48:14 +02:00
|
|
|
upstream-openbsd/lib/libc/gdtoa/dmisc.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/dtoa.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/gdtoa.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/gethex.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/gmisc.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/hd_init.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/hdtoa.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/hexnan.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/ldtoa.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/misc.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/smisc.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/strtod.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/strtodg.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/strtof.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/strtord.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/sum.c \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/ulp.c \
|
|
|
|
|
|
|
|
libc_upstream_openbsd_gdtoa_src_files_32 := \
|
|
|
|
$(libc_upstream_openbsd_gdtoa_src_files) \
|
|
|
|
|
|
|
|
libc_upstream_openbsd_gdtoa_src_files_64 := \
|
|
|
|
$(libc_upstream_openbsd_gdtoa_src_files) \
|
|
|
|
upstream-openbsd/lib/libc/gdtoa/strtorQ.c \
|
|
|
|
|
2015-02-13 01:35:09 +01:00
|
|
|
# These two depend on getentropy_linux.cpp, which isn't in libc_ndk.a.
|
2014-02-25 03:00:43 +01:00
|
|
|
libc_upstream_openbsd_src_files := \
|
2014-07-19 00:57:41 +02:00
|
|
|
upstream-openbsd/lib/libc/crypt/arc4random.c \
|
|
|
|
upstream-openbsd/lib/libc/crypt/arc4random_uniform.c \
|
2015-02-13 01:35:09 +01:00
|
|
|
|
|
|
|
libc_upstream_openbsd_ndk_src_files := \
|
|
|
|
upstream-openbsd/lib/libc/compat-43/killpg.c \
|
2014-03-03 23:38:20 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/alarm.c \
|
2014-04-18 19:29:16 +02:00
|
|
|
upstream-openbsd/lib/libc/gen/ctype_.c \
|
2014-08-27 01:25:19 +02:00
|
|
|
upstream-openbsd/lib/libc/gen/daemon.c \
|
2014-08-27 02:00:37 +02:00
|
|
|
upstream-openbsd/lib/libc/gen/err.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/errx.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/exec.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/fnmatch.c \
|
2014-03-01 01:23:27 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/ftok.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/getprogname.c \
|
2014-04-18 19:29:16 +02:00
|
|
|
upstream-openbsd/lib/libc/gen/isctype.c \
|
2014-03-01 01:23:27 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/setprogname.c \
|
2014-03-11 21:37:11 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/time.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/tolower_.c \
|
2014-03-01 01:23:27 +01:00
|
|
|
upstream-openbsd/lib/libc/gen/toupper_.c \
|
2014-08-27 02:00:37 +02:00
|
|
|
upstream-openbsd/lib/libc/gen/verr.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/verrx.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/vwarn.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/vwarnx.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/warn.c \
|
|
|
|
upstream-openbsd/lib/libc/gen/warnx.c \
|
2014-04-29 23:46:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/btowc.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/mbrlen.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/mbstowcs.c \
|
2014-04-29 02:51:13 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/mbtowc.c \
|
2014-03-11 00:11:59 +01:00
|
|
|
upstream-openbsd/lib/libc/locale/wcscoll.c \
|
2014-04-29 23:46:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wcstod.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstof.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wcstoimax.c \
|
2014-04-29 23:46:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wcstol.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstold.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstoll.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstombs.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstoul.c \
|
|
|
|
upstream-openbsd/lib/libc/locale/wcstoull.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wcstoumax.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/locale/wcsxfrm.c \
|
2014-04-29 23:46:56 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wctob.c \
|
2014-05-01 07:03:12 +02:00
|
|
|
upstream-openbsd/lib/libc/locale/wctomb.c \
|
2014-05-14 01:05:51 +02:00
|
|
|
upstream-openbsd/lib/libc/net/htonl.c \
|
|
|
|
upstream-openbsd/lib/libc/net/htons.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_addr.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_lnaof.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_makeaddr.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_netof.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_network.c \
|
|
|
|
upstream-openbsd/lib/libc/net/inet_ntoa.c \
|
2014-05-20 00:55:29 +02:00
|
|
|
upstream-openbsd/lib/libc/net/inet_ntop.c \
|
2014-05-14 01:05:51 +02:00
|
|
|
upstream-openbsd/lib/libc/net/inet_pton.c \
|
|
|
|
upstream-openbsd/lib/libc/net/ntohl.c \
|
|
|
|
upstream-openbsd/lib/libc/net/ntohs.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/asprintf.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/clrerr.c \
|
2014-05-22 10:24:30 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/dprintf.c \
|
2014-09-24 20:14:36 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fclose.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fdopen.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/feof.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/ferror.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fflush.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fgetc.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fgetln.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fgetpos.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fgets.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fgetwc.c \
|
2014-04-30 02:08:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fgetws.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fileno.c \
|
2014-09-24 05:02:42 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/flags.c \
|
2014-08-21 01:10:49 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fmemopen.c \
|
2014-09-24 20:14:36 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fopen.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fprintf.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fpurge.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fputc.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fputs.c \
|
2014-04-30 02:08:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fputwc.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fputws.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/freopen.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/fscanf.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fseek.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fsetpos.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/ftell.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/funopen.c \
|
2014-04-18 22:13:04 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fvwrite.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/fwalk.c \
|
2014-04-30 02:08:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fwide.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fwprintf.c \
|
2014-05-03 03:18:46 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fwrite.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/fwscanf.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/getc.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/getchar.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/getdelim.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/getline.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/gets.c \
|
2014-04-30 02:08:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/getwc.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/getwchar.c \
|
2014-05-15 08:11:05 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/makebuf.c \
|
2014-07-02 20:22:26 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/mktemp.c \
|
2014-08-21 01:10:49 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/open_memstream.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/open_wmemstream.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/perror.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/printf.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/putc.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/putchar.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/puts.c \
|
2014-04-30 02:08:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/putwc.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/putwchar.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/refill.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/remove.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/rewind.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/rget.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/scanf.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/setbuf.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/setbuffer.c \
|
2014-05-15 08:11:05 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/setvbuf.c \
|
2014-03-13 01:10:41 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/sscanf.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/swprintf.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/swscanf.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/tempnam.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/tmpnam.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/ungetc.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/ungetwc.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/vasprintf.c \
|
2014-05-22 10:24:30 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vdprintf.c \
|
2014-04-18 02:30:03 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vfprintf.c \
|
2014-03-13 01:10:41 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/vfscanf.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vfwprintf.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vfwscanf.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/vprintf.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/vscanf.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/vsnprintf.c \
|
|
|
|
upstream-openbsd/lib/libc/stdio/vsprintf.c \
|
2014-03-13 01:10:41 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/vsscanf.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vswprintf.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vswscanf.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vwprintf.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/vwscanf.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdio/wbuf.c \
|
2014-04-30 02:39:29 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/wprintf.c \
|
2014-04-30 01:28:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/wscanf.c \
|
2014-05-03 03:29:25 +02:00
|
|
|
upstream-openbsd/lib/libc/stdio/wsetup.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/atoi.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/atol.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/atoll.c \
|
2014-04-23 02:41:00 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/getenv.c \
|
2014-09-23 23:06:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/insque.c \
|
2014-07-24 01:02:26 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/lsearch.c \
|
2014-11-22 04:25:27 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/reallocarray.c \
|
2014-09-23 23:06:56 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/remque.c \
|
2014-04-23 02:41:00 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/setenv.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/strtoimax.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/strtol.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/strtoll.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/strtoul.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/strtoull.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/strtoumax.c \
|
2014-02-26 00:19:26 +01:00
|
|
|
upstream-openbsd/lib/libc/stdlib/system.c \
|
2014-07-24 01:02:26 +02:00
|
|
|
upstream-openbsd/lib/libc/stdlib/tfind.c \
|
|
|
|
upstream-openbsd/lib/libc/stdlib/tsearch.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/string/strcasecmp.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strcspn.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strdup.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strndup.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strpbrk.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strsep.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strspn.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strstr.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strtok.c \
|
2015-01-26 22:34:58 +01:00
|
|
|
upstream-openbsd/lib/libc/string/wmemcpy.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/string/wcslcpy.c \
|
2014-04-29 01:28:51 +02:00
|
|
|
upstream-openbsd/lib/libc/string/wcsstr.c \
|
2014-03-11 23:05:50 +01:00
|
|
|
upstream-openbsd/lib/libc/string/wcswidth.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_pthread_src_files := \
|
|
|
|
bionic/pthread_atfork.cpp \
|
|
|
|
bionic/pthread_attr.cpp \
|
|
|
|
bionic/pthread_cond.cpp \
|
|
|
|
bionic/pthread_create.cpp \
|
|
|
|
bionic/pthread_detach.cpp \
|
|
|
|
bionic/pthread_equal.cpp \
|
|
|
|
bionic/pthread_exit.cpp \
|
|
|
|
bionic/pthread_getcpuclockid.cpp \
|
|
|
|
bionic/pthread_getschedparam.cpp \
|
|
|
|
bionic/pthread_gettid_np.cpp \
|
2015-03-19 22:19:19 +01:00
|
|
|
bionic/pthread_internal.cpp \
|
2015-02-10 02:45:22 +01:00
|
|
|
bionic/pthread_join.cpp \
|
|
|
|
bionic/pthread_key.cpp \
|
|
|
|
bionic/pthread_kill.cpp \
|
|
|
|
bionic/pthread_mutex.cpp \
|
|
|
|
bionic/pthread_once.cpp \
|
|
|
|
bionic/pthread_rwlock.cpp \
|
|
|
|
bionic/pthread_self.cpp \
|
|
|
|
bionic/pthread_setname_np.cpp \
|
|
|
|
bionic/pthread_setschedparam.cpp \
|
|
|
|
bionic/pthread_sigmask.cpp \
|
|
|
|
|
2015-03-26 01:38:10 +01:00
|
|
|
libc_thread_atexit_impl_src_files := \
|
|
|
|
bionic/__cxa_thread_atexit_impl.cpp \
|
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
libc_arch_static_src_files := \
|
|
|
|
bionic/dl_iterate_phdr_static.cpp \
|
2013-02-26 10:30:00 +01:00
|
|
|
|
2015-06-05 04:24:07 +02:00
|
|
|
# Various kinds of cruft.
|
2015-02-05 02:35:49 +01:00
|
|
|
# ========================================================
|
2015-06-05 04:24:07 +02:00
|
|
|
libc_common_src_files += \
|
|
|
|
bionic/ndk_cruft.cpp \
|
|
|
|
|
|
|
|
libc_bionic_ndk_src_files_32 += \
|
2015-02-05 02:35:49 +01:00
|
|
|
bionic/mmap.cpp \
|
|
|
|
|
|
|
|
libc_common_src_files_32 += \
|
|
|
|
bionic/legacy_32_bit_support.cpp \
|
|
|
|
bionic/time64.c \
|
|
|
|
|
|
|
|
libc_netbsd_src_files_32 += \
|
|
|
|
upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
|
|
|
|
|
|
|
|
libc_openbsd_src_files_32 += \
|
|
|
|
upstream-openbsd/lib/libc/stdio/putw.c \
|
|
|
|
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# Define some common cflags
|
|
|
|
# ========================================================
|
2009-03-04 04:28:35 +01:00
|
|
|
libc_common_cflags := \
|
2012-06-06 19:32:56 +02:00
|
|
|
-D_LIBC=1 \
|
2014-06-04 00:22:34 +02:00
|
|
|
-Wall -Wextra -Wunused \
|
2013-10-09 02:04:33 +02:00
|
|
|
|
2014-07-10 02:16:07 +02:00
|
|
|
ifneq ($(TARGET_USES_LOGD),false)
|
|
|
|
libc_common_cflags += -DTARGET_USES_LOGD
|
|
|
|
endif
|
|
|
|
|
2014-09-05 00:19:52 +02:00
|
|
|
use_clang := $(USE_CLANG_PLATFORM_BUILD)
|
2015-06-23 23:18:14 +02:00
|
|
|
|
|
|
|
# Clang/llvm has incompatible long double (fp128) for x86_64.
|
|
|
|
# https://llvm.org/bugs/show_bug.cgi?id=23897
|
|
|
|
ifeq ($(TARGET_ARCH),x86_64)
|
|
|
|
use_clang := false
|
|
|
|
endif
|
|
|
|
|
2014-09-05 00:19:52 +02:00
|
|
|
ifeq ($(use_clang),)
|
|
|
|
use_clang := false
|
|
|
|
endif
|
2014-07-11 01:57:27 +02:00
|
|
|
|
2013-10-09 02:04:33 +02:00
|
|
|
# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
|
|
|
|
libc_common_cflags += \
|
|
|
|
-Werror=pointer-to-int-cast \
|
|
|
|
-Werror=int-to-pointer-cast \
|
|
|
|
-Werror=type-limits \
|
2014-07-02 20:22:26 +02:00
|
|
|
-Werror \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2009-04-24 00:50:03 +02:00
|
|
|
ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
|
2009-03-04 04:28:35 +01:00
|
|
|
libc_common_cflags += -DDEBUG
|
|
|
|
endif
|
|
|
|
|
2014-07-11 03:53:41 +02:00
|
|
|
ifeq ($(MALLOC_IMPL),dlmalloc)
|
2014-05-08 20:14:03 +02:00
|
|
|
libc_common_cflags += -DUSE_DLMALLOC
|
2014-05-21 20:45:51 +02:00
|
|
|
libc_malloc_src := bionic/dlmalloc.c
|
2014-07-11 03:53:41 +02:00
|
|
|
else
|
|
|
|
libc_common_cflags += -DUSE_JEMALLOC
|
|
|
|
libc_malloc_src := bionic/jemalloc_wrapper.cpp
|
|
|
|
libc_common_c_includes += external/jemalloc/include
|
2014-05-08 20:14:03 +02:00
|
|
|
endif
|
|
|
|
|
2011-11-19 02:48:03 +01:00
|
|
|
# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in
|
|
|
|
# the appropriate BoardConfig.mk file.
|
|
|
|
#
|
|
|
|
ifneq ($(BOARD_MALLOC_ALIGNMENT),)
|
|
|
|
libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT)
|
|
|
|
endif
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
# Define some common conlyflags
|
|
|
|
libc_common_conlyflags := \
|
|
|
|
-std=gnu99
|
|
|
|
|
|
|
|
# Define some common cppflags
|
|
|
|
libc_common_cppflags := \
|
|
|
|
-std=gnu++11
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# Define some common includes
|
|
|
|
# ========================================================
|
2014-07-11 03:53:41 +02:00
|
|
|
libc_common_c_includes += \
|
2014-02-13 01:40:55 +01:00
|
|
|
$(LOCAL_PATH)/stdio \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
# ========================================================
|
2015-02-05 02:35:49 +01:00
|
|
|
# Add in the arch or 32-bit specific flags
|
2014-01-24 00:17:50 +01:00
|
|
|
# Must be called with $(eval).
|
|
|
|
# $(1): the LOCAL_ variable name
|
|
|
|
# $(2): the bionic variable name to pull in
|
|
|
|
define patch-up-arch-specific-flags
|
|
|
|
$(1)_$(TARGET_ARCH) += $($(2)_$(TARGET_ARCH))
|
2015-02-05 02:35:49 +01:00
|
|
|
$(1)_32 += $($(2)_32)
|
2014-01-24 00:17:50 +01:00
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
$(1)_$(TARGET_2ND_ARCH) += $($(2)_$(TARGET_2ND_ARCH))
|
2012-08-07 21:23:24 +02:00
|
|
|
endif
|
2014-01-24 00:17:50 +01:00
|
|
|
endef
|
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2012-07-10 19:46:19 +02:00
|
|
|
# ========================================================
|
2014-03-11 00:15:11 +01:00
|
|
|
# libc_stack_protector.a - stack protector code
|
2012-07-10 19:46:19 +02:00
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# The stack protector code needs to be compiled
|
|
|
|
# with -fno-stack-protector, since it modifies the
|
|
|
|
# stack canary.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2013-03-07 00:03:53 +01:00
|
|
|
LOCAL_SRC_FILES := bionic/__stack_chk_fail.cpp
|
2014-07-02 20:22:26 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2012-07-10 19:46:19 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
2014-03-11 00:15:11 +01:00
|
|
|
LOCAL_MODULE := libc_stack_protector
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2012-07-10 19:46:19 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2012-07-10 19:46:19 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2012-07-10 19:46:19 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2015-04-04 06:42:28 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_init_common.a - common static/dynamic init code
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# The initialization code needs to be compiled with -fno-stack-protector since
|
|
|
|
# it runs before TLS and initial guard value are set up. It takes the address
|
|
|
|
# of a stack variable, triggering protection with -fstack-protector-strong.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := bionic/libc_init_common.cpp
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
LOCAL_MODULE := libc_init_common
|
|
|
|
LOCAL_CLANG := $(use_clang)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
|
|
|
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2013-07-13 02:31:11 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_tzcode.a - upstream 'tzcode' code
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-02-20 20:28:20 +01:00
|
|
|
LOCAL_SRC_FILES := $(call all-c-files-under,tzcode)
|
2014-05-03 00:53:03 +02:00
|
|
|
# tzcode doesn't include wcsftime, so we use the OpenBSD one.
|
|
|
|
LOCAL_SRC_FILES += upstream-openbsd/lib/libc/time/wcsftime.c
|
2014-04-26 01:55:04 +02:00
|
|
|
|
2014-06-19 23:49:30 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-fvisibility=hidden \
|
|
|
|
|
2014-04-26 01:55:04 +02:00
|
|
|
# Don't use ridiculous amounts of stack.
|
|
|
|
LOCAL_CFLAGS += -DALL_STATE
|
|
|
|
# Include tzsetwall, timelocal, timegm, time2posix, and posix2time.
|
|
|
|
LOCAL_CFLAGS += -DSTD_INSPIRED
|
|
|
|
# The name of the tm_gmtoff field in our struct tm.
|
|
|
|
LOCAL_CFLAGS += -DTM_GMTOFF=tm_gmtoff
|
|
|
|
# Where we store our tzdata.
|
|
|
|
LOCAL_CFLAGS += -DTZDIR=\"/system/usr/share/zoneinfo\"
|
|
|
|
# Include timezone and daylight globals.
|
|
|
|
LOCAL_CFLAGS += -DUSG_COMPAT=1
|
2014-05-06 05:28:28 +02:00
|
|
|
LOCAL_CFLAGS += -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU
|
2014-06-19 23:49:30 +02:00
|
|
|
LOCAL_CFLAGS += -Dlint
|
2014-04-26 01:55:04 +02:00
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2014-05-03 00:53:03 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) $(LOCAL_PATH)/tzcode/
|
2013-07-13 02:31:11 +02:00
|
|
|
LOCAL_MODULE := libc_tzcode
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2013-07-13 02:31:11 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2013-07-13 02:31:11 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2013-07-13 02:31:11 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2013-10-10 00:50:50 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_dns.a - modified NetBSD DNS code
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-05-16 21:04:10 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(call all-c-files-under,dns) \
|
|
|
|
upstream-netbsd/lib/libc/isc/ev_streams.c \
|
|
|
|
upstream-netbsd/lib/libc/isc/ev_timers.c \
|
2014-08-15 00:43:25 +02:00
|
|
|
upstream-netbsd/lib/libc/resolv/mtctxres.c \
|
2014-05-16 21:04:10 +02:00
|
|
|
|
2014-07-22 00:31:01 +02:00
|
|
|
# We use the OpenBSD res_random.
|
|
|
|
LOCAL_CFLAGS += \
|
|
|
|
-Dres_randomid=__res_randomid
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
upstream-openbsd/lib/libc/net/res_random.c \
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += \
|
2013-10-10 00:50:50 +02:00
|
|
|
$(libc_common_cflags) \
|
2014-03-14 00:17:43 +01:00
|
|
|
-DANDROID_CHANGES \
|
2013-10-10 00:50:50 +02:00
|
|
|
-DINET6 \
|
2014-05-16 21:04:10 +02:00
|
|
|
-fvisibility=hidden \
|
2014-07-02 20:22:26 +02:00
|
|
|
-Wno-unused-parameter \
|
2014-05-16 21:04:10 +02:00
|
|
|
-include netbsd-compat.h \
|
2014-05-17 01:50:34 +02:00
|
|
|
|
2013-10-10 00:50:50 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-02-06 23:16:17 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/dns/include \
|
|
|
|
$(LOCAL_PATH)/private \
|
|
|
|
$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
|
|
|
|
$(LOCAL_PATH)/upstream-netbsd/android/include \
|
|
|
|
|
2013-10-10 00:50:50 +02:00
|
|
|
LOCAL_MODULE := libc_dns
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-10 00:50:50 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2013-10-10 00:50:50 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2013-10-10 00:50:50 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2013-10-10 00:50:50 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2013-03-02 01:59:46 +01:00
|
|
|
# ========================================================
|
|
|
|
# libc_freebsd.a - upstream FreeBSD C library code
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# These files are built with the freebsd-compat.h header file
|
|
|
|
# automatically included.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files)
|
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
$(libc_common_cflags) \
|
2014-05-06 05:28:28 +02:00
|
|
|
-Wno-sign-compare -Wno-uninitialized \
|
2014-05-17 01:50:34 +02:00
|
|
|
-include freebsd-compat.h \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-02-06 23:16:17 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/upstream-freebsd/android/include \
|
|
|
|
$(LOCAL_PATH)/upstream-freebsd/lib/libc/include \
|
|
|
|
|
2013-03-02 01:59:46 +01:00
|
|
|
LOCAL_MODULE := libc_freebsd
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2013-03-02 01:59:46 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2013-03-02 01:59:46 +01:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2014-09-17 04:06:31 +02:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_freebsd_src_files))
|
2013-03-02 01:59:46 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2012-08-10 20:39:58 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_netbsd.a - upstream NetBSD C library code
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# These files are built with the netbsd-compat.h header file
|
|
|
|
# automatically included.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_upstream_netbsd_src_files)
|
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
$(libc_common_cflags) \
|
2014-05-06 05:28:28 +02:00
|
|
|
-Wno-sign-compare -Wno-uninitialized \
|
2013-10-10 00:50:50 +02:00
|
|
|
-DPOSIX_MISTAKE \
|
2014-05-17 01:50:34 +02:00
|
|
|
-include netbsd-compat.h \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-02-06 23:16:17 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/upstream-netbsd/android/include \
|
|
|
|
$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
|
|
|
|
|
2012-08-10 20:39:58 +02:00
|
|
|
LOCAL_MODULE := libc_netbsd
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2012-08-10 20:39:58 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2012-08-10 20:39:58 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2014-06-17 01:52:27 +02:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_netbsd_src_files))
|
2012-08-10 20:39:58 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2015-02-13 01:35:09 +01:00
|
|
|
# ========================================================
|
|
|
|
# libc_openbsd_ndk.a - upstream OpenBSD C library code
|
|
|
|
# that can be safely included in the libc_ndk.a (doesn't
|
|
|
|
# contain any troublesome global data or constructors).
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# These files are built with the openbsd-compat.h header file
|
|
|
|
# automatically included.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_upstream_openbsd_ndk_src_files)
|
2015-03-16 21:49:40 +01:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2015-02-13 01:35:09 +01:00
|
|
|
|
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
$(libc_common_cflags) \
|
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-uninitialized \
|
|
|
|
-Wno-unused-parameter \
|
|
|
|
-include openbsd-compat.h \
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/private \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/android/include \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
|
|
|
|
|
|
|
|
LOCAL_MODULE := libc_openbsd_ndk
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-02-13 01:35:09 +01:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
|
|
|
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-02-21 03:04:58 +01:00
|
|
|
# ========================================================
|
|
|
|
# libc_openbsd.a - upstream OpenBSD C library code
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# These files are built with the openbsd-compat.h header file
|
|
|
|
# automatically included.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-02-25 03:00:43 +01:00
|
|
|
LOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
|
2015-03-16 21:49:40 +01:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2014-09-05 00:19:52 +02:00
|
|
|
|
2014-02-21 03:04:58 +01:00
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
$(libc_common_cflags) \
|
2014-09-24 19:27:09 +02:00
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-uninitialized \
|
|
|
|
-Wno-unused-parameter \
|
2014-05-17 01:50:34 +02:00
|
|
|
-include openbsd-compat.h \
|
|
|
|
|
2014-02-21 03:04:58 +01:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-02-06 23:16:17 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/private \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/android/include \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
|
|
|
|
|
2014-02-21 03:04:58 +01:00
|
|
|
LOCAL_MODULE := libc_openbsd
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-02-21 03:04:58 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-02-21 03:04:58 +01:00
|
|
|
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2014-09-17 04:06:31 +02:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_openbsd_src_files))
|
2014-02-21 03:04:58 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_gdtoa.a - upstream OpenBSD C library gdtoa code
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# These files are built with the openbsd-compat.h header file
|
|
|
|
# automatically included.
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
|
|
|
|
LOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
|
2015-03-16 21:49:40 +01:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2014-09-05 00:19:52 +02:00
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
$(libc_common_cflags) \
|
2014-05-06 05:28:28 +02:00
|
|
|
-Wno-sign-compare -Wno-uninitialized \
|
2014-04-22 21:32:49 +02:00
|
|
|
-fvisibility=hidden \
|
2014-04-22 02:13:46 +02:00
|
|
|
-include openbsd-compat.h \
|
2014-04-11 02:48:14 +02:00
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-02-06 23:16:17 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
|
|
|
$(LOCAL_PATH)/private \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/android/include \
|
|
|
|
$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_MODULE := libc_gdtoa
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-04-11 02:48:14 +02:00
|
|
|
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2012-10-23 02:05:27 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_bionic.a - home-grown C library code
|
|
|
|
# ========================================================
|
2013-12-18 05:47:06 +01:00
|
|
|
|
2012-10-23 02:05:27 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_bionic_src_files)
|
2014-05-13 19:14:22 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-Wframe-larger-than=2048 \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
2015-01-22 01:19:07 +01:00
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
|
2012-10-23 02:05:27 +02:00
|
|
|
LOCAL_MODULE := libc_bionic
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2012-10-23 02:05:27 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-04-04 06:42:28 +02:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libc_init_common
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2012-10-23 02:05:27 +02:00
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2015-06-05 04:24:07 +02:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_src_files))
|
2015-02-10 02:45:22 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# libc_bionic_ndk.a - The portions of libc_bionic that can
|
|
|
|
# be safely used in libc_ndk.a (no troublesome global data
|
|
|
|
# or constructors).
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_bionic_ndk_src_files)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-Wframe-larger-than=2048 \
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
|
|
|
|
LOCAL_MODULE := libc_bionic_ndk
|
|
|
|
LOCAL_CLANG := $(use_clang)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-02-10 02:45:22 +01:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2015-06-05 04:24:07 +02:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_ndk_src_files))
|
2012-10-23 02:05:27 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2015-03-26 01:38:10 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(libc_thread_atexit_impl_src_files)
|
2015-04-15 23:07:28 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) -Wframe-larger-than=2048
|
2015-03-26 01:38:10 +01:00
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
LOCAL_MODULE := libc_thread_atexit_impl
|
|
|
|
# TODO: Clang tries to use __tls_get_addr which is not supported yet
|
|
|
|
# remove after it is implemented.
|
|
|
|
LOCAL_CLANG := false
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-03-26 01:38:10 +01:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-10-23 02:05:27 +02:00
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
# ========================================================
|
|
|
|
# libc_pthread.a - pthreads parts that previously lived in
|
|
|
|
# libc_bionic.a. Relocated to their own library because
|
|
|
|
# they can't be included in libc_ndk.a (as they layout of
|
|
|
|
# pthread_t has changed over the years and has ABI
|
|
|
|
# compatibility issues).
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_pthread_src_files)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-Wframe-larger-than=2048 \
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
LOCAL_MODULE := libc_pthread
|
|
|
|
LOCAL_CLANG := $(use_clang)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-02-10 02:45:22 +01:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-08-15 23:20:04 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_cxa.a - Things traditionally in libstdc++
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(libc_cxa_src_files)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-fvisibility=hidden \
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_MODULE := libc_cxa
|
|
|
|
LOCAL_CLANG := true # GCC refuses to hide new/delete
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-01-25 23:27:51 +01:00
|
|
|
# b/17574078: Need to disable coverage until we have a prebuilt libprofile_rt.
|
|
|
|
# Since this is a static library built with clang, it needs to link
|
|
|
|
# libprofile_rt when it is linked into the final binary. Since the final binary
|
|
|
|
# is built with GCC, it won't link libprofile_rt. We can't very easily just add
|
|
|
|
# libprofile_rt to all link lines the way we've done for libgcov because
|
|
|
|
# libprofile_rt isn't prebuilt, and it would be tricky to write a rule that
|
|
|
|
# would make sure libprofile_rt is built.
|
|
|
|
LOCAL_NATIVE_COVERAGE := false
|
2014-08-15 23:20:04 +02:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-02-11 22:32:02 +01:00
|
|
|
# ========================================================
|
|
|
|
# libc_syscalls.a
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
LOCAL_SRC_FILES_$(TARGET_ARCH) := $(call all-S-files-under,arch-$(TARGET_ARCH)/syscalls)
|
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(call all-S-files-under,arch-$(TARGET_2ND_ARCH)/syscalls)
|
|
|
|
endif
|
2014-02-11 22:32:02 +01:00
|
|
|
LOCAL_MODULE := libc_syscalls
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2014-02-11 22:32:02 +01:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-02-11 22:32:02 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-02-11 22:32:02 +01:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-07-11 01:57:27 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_aeabi.a
|
|
|
|
# This is an LP32 ARM-only library that needs to be built with -fno-builtin
|
|
|
|
# to avoid infinite recursion. For the other architectures we just build an
|
|
|
|
# empty library to keep this makefile simple.
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES_arm := arch-arm/bionic/__aeabi.c
|
|
|
|
LOCAL_MODULE := libc_aeabi
|
|
|
|
LOCAL_CLANG := $(use_clang)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) -fno-builtin
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-07-11 01:57:27 +02:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2015-01-22 02:50:29 +01:00
|
|
|
# ========================================================
|
|
|
|
# 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).
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := libc_ndk
|
2015-02-19 02:37:52 +01:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2015-02-10 02:45:22 +01:00
|
|
|
LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) -fvisibility=hidden -O0
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2015-02-10 02:45:22 +01:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(libc_common_src_files) \
|
|
|
|
$(libc_arch_dynamic_src_files) \
|
|
|
|
$(libc_ndk_stub_src_files) \
|
|
|
|
bionic/malloc_debug_common.cpp \
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES_arm += \
|
|
|
|
arch-common/bionic/crtbegin_so.c \
|
|
|
|
arch-arm/bionic/atexit_legacy.c \
|
|
|
|
arch-common/bionic/crtend_so.S \
|
2015-01-22 02:50:29 +01:00
|
|
|
|
2015-02-10 02:45:22 +01:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-DLIBC_STATIC \
|
|
|
|
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
|
|
|
libc_bionic_ndk \
|
|
|
|
libc_cxa \
|
|
|
|
libc_freebsd \
|
|
|
|
libc_gdtoa \
|
|
|
|
libc_malloc \
|
|
|
|
libc_netbsd \
|
2015-02-13 01:35:09 +01:00
|
|
|
libc_openbsd_ndk \
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_stack_protector \
|
|
|
|
libc_syscalls \
|
|
|
|
libc_tzcode \
|
|
|
|
libm \
|
|
|
|
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_arm := libc_aeabi
|
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
|
|
|
|
ifneq ($(MALLOC_IMPL),dlmalloc)
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS))
|
|
|
|
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2015-01-22 02:50:29 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_common.a
|
|
|
|
# ========================================================
|
2012-08-10 20:39:58 +02:00
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
include $(CLEAR_VARS)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
LOCAL_SRC_FILES := $(libc_common_src_files)
|
2013-10-10 00:50:50 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags)
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2009-05-27 19:52:37 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_MODULE := libc_common
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2013-07-13 02:31:11 +02:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
|
|
|
libc_bionic \
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_bionic_ndk \
|
2014-08-15 23:20:04 +02:00
|
|
|
libc_cxa \
|
2013-10-10 00:50:50 +02:00
|
|
|
libc_dns \
|
2013-07-13 02:31:11 +02:00
|
|
|
libc_freebsd \
|
2014-04-11 02:48:14 +02:00
|
|
|
libc_gdtoa \
|
2014-06-04 03:47:17 +02:00
|
|
|
libc_malloc \
|
2013-07-13 02:31:11 +02:00
|
|
|
libc_netbsd \
|
2014-02-21 03:04:58 +01:00
|
|
|
libc_openbsd \
|
2015-02-13 01:35:09 +01:00
|
|
|
libc_openbsd_ndk \
|
2015-02-10 02:45:22 +01:00
|
|
|
libc_pthread \
|
2014-03-11 00:15:11 +01:00
|
|
|
libc_stack_protector \
|
2014-02-11 22:32:02 +01:00
|
|
|
libc_syscalls \
|
2015-03-26 01:38:10 +01:00
|
|
|
libc_thread_atexit_impl \
|
2013-10-10 00:50:50 +02:00
|
|
|
libc_tzcode \
|
|
|
|
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_arm := libc_aeabi
|
|
|
|
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
|
|
|
|
2012-08-11 23:23:19 +02:00
|
|
|
# TODO: split out the asflags.
|
|
|
|
LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2012-08-11 23:23:19 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS))
|
2009-03-04 04:28:35 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_nomalloc.a
|
|
|
|
# ========================================================
|
|
|
|
#
|
|
|
|
# This is a version of the static C library that does not
|
2013-02-13 06:56:42 +01:00
|
|
|
# include malloc. It's useful in situations when the user wants
|
|
|
|
# to provide their own malloc implementation, or wants to
|
2014-05-16 03:12:11 +02:00
|
|
|
# explicitly disallow the use of malloc, such as in the
|
|
|
|
# dynamic linker.
|
2009-05-27 19:52:37 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2014-01-24 00:17:50 +01:00
|
|
|
$(libc_arch_static_src_files) \
|
|
|
|
bionic/libc_init_static.cpp
|
2009-05-27 19:52:37 +02:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
2010-08-27 17:19:19 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
2014-05-17 01:50:34 +02:00
|
|
|
-DLIBC_STATIC \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2009-05-27 19:52:37 +02:00
|
|
|
|
|
|
|
LOCAL_MODULE := libc_nomalloc
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2009-05-27 19:52:37 +02:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libc_common
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2009-05-27 19:52:37 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2009-05-27 19:52:37 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
|
2009-05-27 19:52:37 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-06-04 03:47:17 +02:00
|
|
|
# ========================================================
|
|
|
|
# libc_malloc.a: the _prefixed_ malloc functions (like dlcalloc).
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(libc_malloc_src)
|
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
|
|
|
-fvisibility=hidden \
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
LOCAL_MODULE := libc_malloc
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-06-04 03:47:17 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# ========================================================
|
2009-03-04 04:28:35 +01:00
|
|
|
# libc.a
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2014-01-24 00:17:50 +01:00
|
|
|
$(libc_arch_static_src_files) \
|
|
|
|
bionic/malloc_debug_common.cpp \
|
|
|
|
bionic/libc_init_static.cpp \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2009-11-17 23:13:38 +01:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
2014-05-17 01:50:34 +02:00
|
|
|
-DLIBC_STATIC \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
2009-05-27 19:52:37 +02:00
|
|
|
LOCAL_MODULE := libc
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2013-10-03 22:26:22 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libc_common
|
2015-04-23 21:24:43 +02:00
|
|
|
|
|
|
|
ifneq ($(MALLOC_IMPL),dlmalloc)
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc
|
|
|
|
endif
|
|
|
|
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
|
2009-03-04 04:28:35 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# ========================================================
|
2009-03-04 04:28:35 +01:00
|
|
|
# libc.so
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-07-02 20:22:26 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags)
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-03-10 03:38:56 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
LOCAL_SRC_FILES := \
|
2014-11-21 05:47:02 +01:00
|
|
|
arch-common/bionic/crtbegin_so.c \
|
|
|
|
arch-common/bionic/crtbrand.S \
|
2013-12-18 05:47:06 +01:00
|
|
|
$(libc_arch_dynamic_src_files) \
|
|
|
|
bionic/malloc_debug_common.cpp \
|
|
|
|
bionic/libc_init_dynamic.cpp \
|
2014-05-14 01:30:12 +02:00
|
|
|
bionic/NetdClient.cpp \
|
2014-11-21 05:47:02 +01:00
|
|
|
arch-common/bionic/crtend_so.S \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_MODULE := libc
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2012-10-18 20:28:56 +02:00
|
|
|
LOCAL_REQUIRED_MODULES := tzdata
|
2015-04-02 01:26:54 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(libc_common_additional_dependencies) \
|
2015-06-04 02:48:51 +02:00
|
|
|
$(LOCAL_PATH)/libc.map \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-03-21 19:11:38 +01:00
|
|
|
# Leave the symbols in the shared library so that stack unwinders can produce
|
|
|
|
# meaningful name resolution.
|
|
|
|
LOCAL_STRIP_MODULE := keep_symbols
|
|
|
|
|
2015-04-28 23:52:47 +02:00
|
|
|
# Do not pack libc.so relocations; see http://b/20645321 for details.
|
|
|
|
LOCAL_PACK_MODULE_RELOCATIONS := false
|
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries,
|
|
|
|
# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This
|
|
|
|
# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared
|
|
|
|
# external; if that were the case, then libc would not pull those symbols from libgcc.a as it
|
|
|
|
# should, instead relying on the external symbols from the dependent libraries. That would
|
2014-04-11 02:48:14 +02:00
|
|
|
# create a "cloaked" dependency on libgcc.a in libc though the libraries, which is not what
|
2009-03-04 04:28:35 +01:00
|
|
|
# you wanted!
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := libdl
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libc_common
|
2015-04-23 21:24:43 +02:00
|
|
|
|
|
|
|
ifneq ($(MALLOC_IMPL),dlmalloc)
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc
|
|
|
|
endif
|
|
|
|
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
|
|
|
|
2015-04-02 01:26:54 +02:00
|
|
|
# Don't re-export new/delete and friends, even if the compiler really wants to.
|
2015-06-04 02:48:51 +02:00
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libc.map
|
2015-04-02 01:26:54 +02:00
|
|
|
|
2014-06-24 06:31:08 +02:00
|
|
|
# We'd really like to do this for all architectures, but since this wasn't done
|
|
|
|
# before, these symbols must continue to be exported on LP32 for binary
|
|
|
|
# compatibility.
|
2015-05-08 00:12:24 +02:00
|
|
|
LOCAL_LDFLAGS_64 := -Wl,--exclude-libs,libgcc.a
|
2014-06-24 06:31:08 +02:00
|
|
|
|
2015-04-02 01:26:54 +02:00
|
|
|
# TODO: This is to work around b/19059885. Remove after root cause is fixed
|
2015-05-08 21:05:47 +02:00
|
|
|
LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
|
2015-05-16 02:53:39 +02:00
|
|
|
LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
|
2015-04-02 01:26:54 +02:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2014-02-13 01:40:55 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files))
|
2014-11-21 05:47:02 +01:00
|
|
|
|
|
|
|
LOCAL_NO_CRT := true
|
|
|
|
LOCAL_ASFLAGS += $(libc_crt_target_cflags)
|
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
# special for arm
|
|
|
|
LOCAL_CFLAGS_arm += -DCRT_LEGACY_WORKAROUND
|
|
|
|
LOCAL_SRC_FILES_arm += \
|
2014-11-21 05:47:02 +01:00
|
|
|
arch-arm/bionic/atexit_legacy.c
|
|
|
|
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-01-24 00:17:50 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
|
2009-11-17 23:13:38 +01:00
|
|
|
# For all builds, except for the -user build we will enable memory
|
|
|
|
# allocation checking (including memory leaks, buffer overwrites, etc.)
|
|
|
|
# Note that all these checks are also controlled by env. settings
|
|
|
|
# that can enable, or disable specific checks. Note also that some of
|
|
|
|
# the checks are available only in emulator and are implemeted in
|
|
|
|
# libc_malloc_qemu_instrumented.so.
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
|
|
|
|
2009-05-27 19:52:37 +02:00
|
|
|
# ========================================================
|
2009-11-17 23:13:38 +01:00
|
|
|
# libc_malloc_debug_leak.so
|
2009-03-04 04:28:35 +01:00
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-09-19 21:26:09 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags)
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-07-25 02:52:23 +02:00
|
|
|
# Make sure that unwind.h comes from libunwind.
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(libc_common_c_includes) \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2014-01-24 00:17:50 +01:00
|
|
|
bionic/debug_mapinfo.cpp \
|
|
|
|
bionic/debug_stacktrace.cpp \
|
2014-07-10 02:16:07 +02:00
|
|
|
bionic/libc_logging.cpp \
|
2014-01-24 00:17:50 +01:00
|
|
|
bionic/malloc_debug_leak.cpp \
|
|
|
|
bionic/malloc_debug_check.cpp \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_MODULE := libc_malloc_debug_leak
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2015-04-02 01:26:54 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(libc_common_additional_dependencies) \
|
|
|
|
$(LOCAL_PATH)/version_script.txt \
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2012-09-10 17:35:25 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := libc libdl
|
2014-10-13 20:20:29 +02:00
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2014-10-14 23:19:34 +02:00
|
|
|
# Only need this for arm since libc++ uses its own unwind code that
|
|
|
|
# doesn't mix with the other default unwind code.
|
2015-02-05 21:05:34 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES_arm := libunwind_llvm
|
|
|
|
LOCAL_STATIC_LIBRARIES += libc++abi
|
2010-07-08 23:47:50 +02:00
|
|
|
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
|
2011-03-14 22:02:05 +01:00
|
|
|
|
2015-04-02 01:26:54 +02:00
|
|
|
# Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/version_script.txt
|
|
|
|
|
2009-11-17 23:13:38 +01:00
|
|
|
# Don't install on release build
|
|
|
|
LOCAL_MODULE_TAGS := eng debug
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2009-11-17 23:13:38 +01:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# libc_malloc_debug_qemu.so
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := \
|
2014-01-24 00:17:50 +01:00
|
|
|
$(libc_common_cflags) \
|
2014-05-17 01:50:34 +02:00
|
|
|
-DMALLOC_QEMU_INSTRUMENT \
|
|
|
|
|
2013-10-01 02:10:53 +02:00
|
|
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2009-11-17 23:13:38 +01:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2014-07-10 02:16:07 +02:00
|
|
|
bionic/libc_logging.cpp \
|
|
|
|
bionic/malloc_debug_qemu.cpp \
|
2009-11-17 23:13:38 +01:00
|
|
|
|
2014-04-11 02:48:14 +02:00
|
|
|
LOCAL_MODULE := libc_malloc_debug_qemu
|
2014-07-11 01:57:27 +02:00
|
|
|
LOCAL_CLANG := $(use_clang)
|
2015-04-02 01:26:54 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(libc_common_additional_dependencies) \
|
|
|
|
$(LOCAL_PATH)/version_script.txt \
|
2009-11-17 23:13:38 +01:00
|
|
|
|
2011-09-06 08:54:55 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := libc libdl
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
2011-03-14 22:02:05 +01:00
|
|
|
|
2015-04-02 01:26:54 +02:00
|
|
|
# Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/version_script.txt
|
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
# Don't install on release build
|
2009-11-17 23:13:38 +01:00
|
|
|
LOCAL_MODULE_TAGS := eng debug
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
2009-03-04 04:28:35 +01:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2014-01-24 00:17:50 +01:00
|
|
|
endif #!user
|
2009-11-17 23:13:38 +01:00
|
|
|
|
2014-08-15 23:20:04 +02:00
|
|
|
# ========================================================
|
|
|
|
# libstdc++.so
|
|
|
|
# ========================================================
|
|
|
|
libstdcxx_common_src_files := \
|
|
|
|
bionic/__cxa_guard.cpp \
|
|
|
|
bionic/__cxa_pure_virtual.cpp \
|
|
|
|
bionic/new.cpp \
|
|
|
|
bionic/libc_logging.cpp \
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags)
|
2014-09-09 01:22:22 +02:00
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2015-03-10 03:38:56 +01:00
|
|
|
|
|
|
|
# TODO: This is to work around b/19059885. Remove after root cause is fixed
|
2015-05-08 21:05:47 +02:00
|
|
|
LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
|
2015-05-16 02:53:39 +02:00
|
|
|
LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
|
2015-03-10 03:38:56 +01:00
|
|
|
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_SRC_FILES := $(libstdcxx_common_src_files)
|
|
|
|
LOCAL_MODULE:= libstdc++
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-08-15 23:20:04 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# libstdc++.a
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_CFLAGS := $(libc_common_cflags)
|
2014-09-09 01:22:22 +02:00
|
|
|
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_SRC_FILES := $(libstdcxx_common_src_files)
|
|
|
|
LOCAL_MODULE:= libstdc++
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2014-09-16 19:10:25 +02:00
|
|
|
LOCAL_CXX_STL := none
|
2014-08-15 23:20:04 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-09-23 19:44:01 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2014-08-15 23:20:04 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2009-11-17 23:13:38 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
# ========================================================
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|