Android.mk revision 4ae773633aac9ceba5ec62bb8e1aa22c3c56ebde
1e210488e0d4082b9a0c55195c22191f29ed56bf8Serban ConstantinescuLOCAL_PATH := $(call my-dir)
21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
3c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan Albertbionic_coverage := false
4c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan Albert
5d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris# Make everything depend on any changes to included makefiles.
6f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies := $(LOCAL_PATH)/Android.mk
7f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
8f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_ARCH
9f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
10f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
11f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \
12f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
13f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
14f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
15f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
16f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_2ND_ARCH
17f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
18f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
19f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
20f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \
21f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
22f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
23f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
24f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crt obj files
25f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ========================================================
26f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crtbrand.c needs <stdint.h> and a #define for the platform SDK version.
27f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_crt_target_cflags := \
28f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -I$(LOCAL_PATH)/include \
29f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
30f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
31f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
32f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk
33f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
34f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
35f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk
36f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
37f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
38d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris
39ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the common source files for all the libc instances
40ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# =========================================================
411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files := \
4276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/bindresvport.c \
4376c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ether_aton.c \
4476c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ether_ntoa.c \
4576c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/fts.c \
4676c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/getpriority.c \
4776c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/if_indextoname.c \
4876c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/if_nametoindex.c \
4976c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/initgroups.c \
5076c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ioctl.c \
5176c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/isatty.c \
5276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/memmem.c \
5376c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/pututline.c \
5476c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sched_cpualloc.c \
5576c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sched_cpucount.c \
5676c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sigblock.c \
5776c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/siginterrupt.c \
5876c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sigsetmask.c \
5976c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/system_properties_compat.c \
606a03abcfd23f31d1df06eb0059830e22621282bbElliott Hughes    stdio/findfp.c \
6120841a137beac5caa824e3586c7bd91d879ff92eElliott Hughes    stdio/fread.c \
62aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdio/snprintf.c\
63aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdio/sprintf.c \
648885dcc779bceae5016d5ad96caa73465a7bab90Elliott Hughes    stdio/stdio.c \
652b021e10664c3938249eb18b48eeac253cbb3e20Elliott Hughes    stdio/stdio_ext.cpp \
66163ab8ba86deb991c73152e6828f270cc71dc4c5Dmitriy Ivanov    stdlib/exit.c \
67eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
6859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris# Fortify implementations of libc functions.
6959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferrislibc_common_src_files += \
7090201d5eca050414d50a433866ccb580415bb0d4Nick Kralevich    bionic/__FD_chk.cpp \
7159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__fgets_chk.cpp \
724ae773633aac9ceba5ec62bb8e1aa22c3c56ebdeDaniel Micay    bionic/__memchr_chk.cpp \
7359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__memmove_chk.cpp \
744ae773633aac9ceba5ec62bb8e1aa22c3c56ebdeDaniel Micay    bionic/__memrchr_chk.cpp \
754674e3899afcc6b3ac8a48cdb716695d5489d26bElliott Hughes    bionic/__poll_chk.cpp \
76e7e1c875b0f8eefb1d771f200a58f54e64c39d55Daniel Micay    bionic/__pread64_chk.cpp \
77e7e1c875b0f8eefb1d771f200a58f54e64c39d55Daniel Micay    bionic/__pread_chk.cpp \
78b036b5ca36c1e12b075909b3eca6eab73ee611cfNick Kralevich    bionic/__read_chk.cpp \
7960f4f9a5b99a0a66817f50edfc2194a49f8b5146Nick Kralevich    bionic/__recvfrom_chk.cpp \
80950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    bionic/__stpcpy_chk.cpp \
81950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    bionic/__stpncpy_chk.cpp \
8259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strchr_chk.cpp \
8359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlcat_chk.cpp \
8459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlcpy_chk.cpp \
8559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlen_chk.cpp \
8659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strncat_chk.cpp \
8759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strncpy_chk.cpp \
8859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strrchr_chk.cpp \
8959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__umask_chk.cpp \
9059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__vsnprintf_chk.cpp \
9159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__vsprintf_chk.cpp \
9259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
939a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertlibc_bionic_ndk_src_files := \
9461e699a133a4807fe878a6cb0d7190d7c96e21f8Elliott Hughes    bionic/abort.cpp \
958f0cd8aa22906c3e678738eeba20fc1a5c399b6cSreeram Ramachandran    bionic/accept.cpp \
96903b78873a744d3fba187e4bd22008ba21162e51Sreeram Ramachandran    bionic/accept4.cpp \
97f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/access.cpp \
98063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/assert.cpp \
995a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/atof.cpp \
100a406ee6d5f616192e9a13afad6ac6a9969814fc1Brigid Smith    bionic/bionic_systrace.cpp \
10111952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/bionic_time_conversions.cpp \
102428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes    bionic/brk.cpp \
1037a7f9952c12b216fbf91fc4cdbb97045e8861115Dan Albert    bionic/c16rtomb.cpp \
1047a7f9952c12b216fbf91fc4cdbb97045e8861115Dan Albert    bionic/c32rtomb.cpp \
105f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/chmod.cpp \
106f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/chown.cpp \
10758d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    bionic/clearenv.cpp \
108cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes    bionic/clock.cpp \
109d5c652756bb1a52959cd5c62447b62462f90f983Yabin Cui    bionic/clock_getcpuclockid.cpp \
11018160256840e9bb097f17422ea47d54fabbc9f3fHaruki Hasegawa    bionic/clock_nanosleep.cpp \
11136d6188f8cd8b948fb797f11d9620d63d0c2215aElliott Hughes    bionic/clone.cpp \
112f8408c58fa61540d8b6b5afec4246284482d89c2Calin Juravle    bionic/__cmsg_nxthdr.cpp \
113ceb5bd787c8ce281e5f4343c5d4f77b41c3e2919Sreeram Ramachandran    bionic/connect.cpp \
114dfb5ce42bcc5a275af49211c0bbe64c5ec3d2668Dan Albert    bionic/ctype.cpp \
115c30396f5f225e0b5a83a35432e2d82a7063cfdb9David 'Digit' Turner    bionic/dirent.cpp \
116cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/dup2.cpp \
117cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/epoll_create.cpp \
11811952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/epoll_pwait.cpp \
119aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/epoll_wait.cpp \
1202a0b873065edb304fa2d1c54f8de663ea638b8abElliott Hughes    bionic/__errno.cpp \
121b8a8cf0d1a333401eae9c9e1d70b9c1b154ff9c9Elliott Hughes    bionic/error.cpp \
1229b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng    bionic/eventfd_read.cpp \
1239b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng    bionic/eventfd_write.cpp \
12435778253a5ed71e87a608ca590b63729d9f88567Nick Kralevich    bionic/faccessat.cpp \
1253cbc6c627fe57c9a9783c52d148078f8d52f7b96Nick Kralevich    bionic/fchmod.cpp \
1263cbc6c627fe57c9a9783c52d148078f8d52f7b96Nick Kralevich    bionic/fchmodat.cpp \
127bf425680e484486803bf21e4c4cd1e3f36614a3cElliott Hughes    bionic/ffs.cpp \
12853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    bionic/flockfile.cpp \
12902c78a386739a8a2b3007efeb00a9ca04132100aElliott Hughes    bionic/fpclassify.cpp \
130d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1Elliott Hughes    bionic/futimens.cpp \
131063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/getcwd.cpp \
1322f954bab2d524f6afed8a443c2a7ee32876db0faYongqin Liu    bionic/gethostname.cpp \
133247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/getpgrp.cpp \
1347086ad6919feb2415c6027163f5c63323bcca27cElliott Hughes    bionic/getpid.cpp \
1355d9a7ba0dc9c24ed4e4efa9cac0e796fd524b308Elliott Hughes    bionic/gettid.cpp \
13609c39d6df0e952620f8c1751377b559a04e023aaElliott Hughes    bionic/__gnu_basename.cpp \
137cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/inotify_init.cpp \
138f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/lchown.cpp \
139fe317a3775e16d466bb884a8e054fd77f7087bb3Calin Juravle    bionic/lfs64_support.cpp \
1400990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes    bionic/__libc_current_sigrtmax.cpp \
1410990d4fda898ada86e557f872f5cb7d16b138e3cElliott Hughes    bionic/__libc_current_sigrtmin.cpp \
14242b2c6a5eed5e4ef35315b8cd32d1355f12a69b6Elliott Hughes    bionic/libc_init_common.cpp \
1438f2a5a0b40fc82126c691d5c30131d908772aab7Elliott Hughes    bionic/libc_logging.cpp \
14458b575485c446f9d76ee00f67516ed42cf017769Elliott Hughes    bionic/libgen.cpp \
145f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/link.cpp \
1465363a45f2b6d4eeb054710d0886bbadea8a15273Elliott Hughes    bionic/locale.cpp \
147f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/lstat.cpp \
1484caa1f09770ea3e5ca22afbe8aa0900810a0dbfeDan Albert    bionic/malloc_info.cpp \
1497a7f9952c12b216fbf91fc4cdbb97045e8861115Dan Albert    bionic/mbrtoc16.cpp \
1507a7f9952c12b216fbf91fc4cdbb97045e8861115Dan Albert    bionic/mbrtoc32.cpp \
1517a7f9952c12b216fbf91fc4cdbb97045e8861115Dan Albert    bionic/mbstate.cpp \
1523cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes    bionic/mempcpy.cpp \
153f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/mkdir.cpp \
154594b1a4af204aa9de2b4913182f4556e38d71648Elliott Hughes    bionic/mkfifo.cpp \
155f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/mknod.cpp \
156eb664e24c074b88539b743668109d8b4eaa925bdElliott Hughes    bionic/mntent.cpp \
1578205a61248973ac13716ae80e712c80e126b0541Sreeram Ramachandran    bionic/NetdClientDispatch.cpp \
158f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/open.cpp \
159a186b2e0ca19620a52b4a49c17835532d13eb30aElliott Hughes    bionic/pathconf.cpp \
16011952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/pause.cpp \
161cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/pipe.cpp \
16211952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/poll.cpp \
163b587f339db269abf08a2c311a7263dd218cb23d3Elliott Hughes    bionic/posix_fadvise.cpp \
164f64b8ea09db3bdd84eed59f7721301743332b3feElliott Hughes    bionic/posix_fallocate.cpp \
1655afae64a1bac56638c6348f0c8f5e9d61b654029Yabin Cui    bionic/posix_madvise.cpp \
1664b558f50a42c97d461f1dede5aaaae490ea99e2eElliott Hughes    bionic/posix_timers.cpp \
167c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/ptrace.cpp \
1684916706cfe590eb06c9b5bd4bd402ce056034d51Elliott Hughes    bionic/pty.cpp \
169d8a5a6f513c6fa99229e9c82c5c308c7cd6b3d54Chris Dearman    bionic/raise.cpp \
17076c241b091b4d9d9a9237d40e814e52ce2917f47Elliott Hughes    bionic/rand.cpp \
171f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/readlink.cpp \
172a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes    bionic/reboot.cpp \
173247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/recv.cpp \
174f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/rename.cpp \
175f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/rmdir.cpp \
176701bec2af33feaa9dddf12ccf8e4c714441b7f2eElliott Hughes    bionic/scandir.cpp \
1774ca685e36e9d7f53c135eba2b4b8ece152129dbeKito Cheng    bionic/sched_getaffinity.cpp \
178887e1140fe7596fa1239a0bc802d2cdb51c57d3cElliott Hughes    bionic/sched_getcpu.cpp \
17904303f5a8ab9a992f3671d46b6ee2171582cbd61Elliott Hughes    bionic/semaphore.cpp \
180247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/send.cpp \
181232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes    bionic/setegid.cpp \
1824a9e837840fda3aaea48aeba85c7c7a8782d2586Elliott Hughes    bionic/__set_errno.cpp \
183232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes    bionic/seteuid.cpp \
1845a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/setpgrp.cpp \
185c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigaction.cpp \
186c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigaddset.cpp \
187c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigdelset.cpp \
188c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigemptyset.cpp \
189c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigfillset.cpp \
190c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigismember.cpp \
191c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/signal.cpp \
192aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/signalfd.cpp \
19340d105ccb3e6283566ce54b693b3088f31aa4f26Elliott Hughes    bionic/sigpending.cpp \
19419e62325c268a668692e2b65fde2284079f369aaElliott Hughes    bionic/sigprocmask.cpp \
195634816055f51c536d24dea30dfe930b7fe2fa603Yabin Cui    bionic/sigqueue.cpp \
1961f5af926fa626734981d6b4dcc0ab54e520032a9Elliott Hughes    bionic/sigsuspend.cpp \
197634816055f51c536d24dea30dfe930b7fe2fa603Yabin Cui    bionic/sigtimedwait.cpp \
198c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes    bionic/sigwait.cpp \
199634816055f51c536d24dea30dfe930b7fe2fa603Yabin Cui    bionic/sigwaitinfo.cpp \
200903b78873a744d3fba187e4bd22008ba21162e51Sreeram Ramachandran    bionic/socket.cpp \
201f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/stat.cpp \
20206040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughes    bionic/statvfs.cpp \
203063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strerror.cpp \
204063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strerror_r.cpp \
205063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strsignal.cpp \
2065a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/strtold.cpp \
207063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/stubs.cpp \
208f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/symlink.cpp \
2099d93986481b67a8135e57fc6400ca8c59f7375f6Yabin Cui    bionic/sysinfo.cpp \
2103ad8ecb64e9dd5614169232b84a93eb3b8aa32d7Elliott Hughes    bionic/syslog.cpp \
211aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/sys_siglist.c \
212aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/sys_signame.c \
2135a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/system_properties.cpp \
214063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/tdestroy.cpp \
2158d4b5849f21dc4115ad66944dc11df838b3faa52Elliott Hughes    bionic/termios.cpp \
2160468feb28696751efcddada8de69a622afffdba8Elliott Hughes    bionic/thread_private.cpp \
217063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/tmpfile.cpp \
218247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/umount.cpp \
219f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/unlink.cpp \
220f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/utimes.cpp \
22117a8b0db63d54e9d79bf11112ace0c4fe9606289Elliott Hughes    bionic/wait.cpp \
222063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/wchar.cpp \
2235a0aa3dee247a313f04252cf45608097695d5953Elliott Hughes    bionic/wctype.cpp \
2243cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes    bionic/wmempcpy.cpp \
22529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
2269a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertlibc_bionic_src_files :=
2279a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
2289a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# The fork implementation depends on pthread data, so we can't include it in
2299a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# libc_ndk.a.
2309a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertlibc_bionic_src_files += bionic/fork.cpp
2319a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
2329a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# The data that backs getauxval is initialized in the libc init functions which
2339a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# are invoked by the linker. If this file is included in libc_ndk.a, only one of
2349a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# the copies of the global data will be initialized, resulting in nullptr
2359a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# dereferences.
2369a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertlibc_bionic_src_files += bionic/getauxval.cpp
2379a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
238a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# These three require getauxval, which isn't available on older platforms.
239a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertlibc_bionic_src_files += bionic/getentropy_linux.c
240a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertlibc_bionic_src_files += bionic/sysconf.cpp
241a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertlibc_bionic_src_files += bionic/vdso.cpp
242a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
243fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertlibc_cxa_src_files := \
244fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/__cxa_guard.cpp \
245fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/__cxa_pure_virtual.cpp \
246fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/new.cpp \
247fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
248f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hugheslibc_upstream_freebsd_src_files := \
24957a883640f3b43bf5e332d64489b3eab67a5ac3fElliott Hughes    upstream-freebsd/lib/libc/gen/ldexp.c \
250ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes    upstream-freebsd/lib/libc/gen/sleep.c \
251ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes    upstream-freebsd/lib/libc/gen/usleep.c \
252aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/abs.c \
253d278b828fef47fb2d7098f8ec70867fbd3da09d6Elliott Hughes    upstream-freebsd/lib/libc/stdlib/getopt_long.c \
254aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/imaxabs.c \
255aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/imaxdiv.c \
256aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/labs.c \
257aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/llabs.c \
2580b25f633a23e575c8a1f9547d1af5dc5b0157a1cElliott Hughes    upstream-freebsd/lib/libc/stdlib/qsort.c \
259b8425c549a0bfe08b01b5906b95603d8523c1b16Dan Albert    upstream-freebsd/lib/libc/stdlib/quick_exit.c \
260f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes    upstream-freebsd/lib/libc/stdlib/realpath.c \
261eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcpcpy.c \
262eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcpncpy.c \
263eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcscasecmp.c \
264eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcscspn.c \
265eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsdup.c \
266eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcslcat.c \
267eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncasecmp.c \
268eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncat.c \
269eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncmp.c \
270eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncpy.c \
271eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsnlen.c \
272eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcspbrk.c \
273eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsspn.c \
274eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcstok.c \
275eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemchr.c \
276eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemset.c \
277f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
278f8b3a920a895a53b207017249080087d562bd0d2Elliott Hugheslibc_upstream_netbsd_src_files := \
279a0beeeabbc8735bc830544cbbb1d920122b8d958Elliott Hughes    upstream-netbsd/common/lib/libc/stdlib/random.c \
280677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/ftw.c \
281677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/nftw.c \
282677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/nice.c \
283677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/popen.c \
284677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/psignal.c \
285677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/utime.c \
28619f58efa22357bfaa6a63a0940928830e95c5123Elliott Hughes    upstream-netbsd/lib/libc/gen/utmp.c \
287a210cae724313604f8cbd49cc6deab1be5239083Elliott Hughes    upstream-netbsd/lib/libc/inet/nsap_addr.c \
288677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regcomp.c \
289677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regerror.c \
290677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regexec.c \
291677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regfree.c \
292677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/bsearch.c \
293677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/div.c \
294677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/drand48.c \
295677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/erand48.c \
296677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/jrand48.c \
297274afe8f0eab4139c94d5f8b1ee3d267f449ef42Elliott Hughes    upstream-netbsd/lib/libc/stdlib/lcong48.c \
298677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/ldiv.c \
299677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/lldiv.c \
300677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/lrand48.c \
301677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/mrand48.c \
302677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/nrand48.c \
303677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/_rand48.c \
304a0beeeabbc8735bc830544cbbb1d920122b8d958Elliott Hughes    upstream-netbsd/lib/libc/stdlib/rand_r.c \
305677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/seed48.c \
306677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/srand48.c \
307677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/memccpy.c \
308677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strcasestr.c \
309677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strcoll.c \
310677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strxfrm.c \
311f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
3124bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files := \
313d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    upstream-openbsd/android/gdtoa_support.cpp \
3144bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/dmisc.c \
3154bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/dtoa.c \
3164bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gdtoa.c \
3174bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gethex.c \
3184bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gmisc.c \
3194bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hd_init.c \
3204bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hdtoa.c \
3214bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hexnan.c \
3224bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/ldtoa.c \
3234bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/misc.c \
3244bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/smisc.c \
3254bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtod.c \
3264bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtodg.c \
3274bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtof.c \
3284bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtord.c \
3294bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/sum.c \
3304bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/ulp.c \
3314bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
3324bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files_32 := \
3334bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_upstream_openbsd_gdtoa_src_files) \
3344bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
3354bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files_64 := \
3364bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_upstream_openbsd_gdtoa_src_files) \
3374bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtorQ.c \
3384bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
339a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# These two depend on getentropy_linux.cpp, which isn't in libc_ndk.a.
34053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hugheslibc_upstream_openbsd_src_files := \
3412b67d7dee09852789d9ac7d8972ed6cdb2c18430Elliott Hughes    upstream-openbsd/lib/libc/crypt/arc4random.c \
3422b67d7dee09852789d9ac7d8972ed6cdb2c18430Elliott Hughes    upstream-openbsd/lib/libc/crypt/arc4random_uniform.c \
343a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
344a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertlibc_upstream_openbsd_ndk_src_files := \
345a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    upstream-openbsd/lib/libc/compat-43/killpg.c \
346aedb00d04eb7f0b20b6abde702ba94a46577ca68Elliott Hughes    upstream-openbsd/lib/libc/gen/alarm.c \
347f3c73901cb5ca4de2651151cf2c65b31a729466eElliott Hughes    upstream-openbsd/lib/libc/gen/ctype_.c \
348e5055179fd92ae243741d778426e1da03539165fElliott Hughes    upstream-openbsd/lib/libc/gen/daemon.c \
349cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/err.c \
350cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/errx.c \
35153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/exec.c \
35253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/fnmatch.c \
353692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/ftok.c \
354692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/getprogname.c \
355f3c73901cb5ca4de2651151cf2c65b31a729466eElliott Hughes    upstream-openbsd/lib/libc/gen/isctype.c \
356692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/setprogname.c \
357cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes    upstream-openbsd/lib/libc/gen/time.c \
35853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/tolower_.c \
359692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/toupper_.c \
360cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/verr.c \
361cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/verrx.c \
362cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/vwarn.c \
363cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/vwarnx.c \
364cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/warn.c \
365cc7e5f489f02ceee46e315af4f78559d3ad6c962Elliott Hughes    upstream-openbsd/lib/libc/gen/warnx.c \
3663d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/btowc.c \
3673d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/mbrlen.c \
3683d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/mbstowcs.c \
3690a5e26da1eae6b75a89695faf2e057c5c4717721Elliott Hughes    upstream-openbsd/lib/libc/locale/mbtowc.c \
370c8937eadf4a45afebe586dcea7a8ed882f3bec3bElliott Hughes    upstream-openbsd/lib/libc/locale/wcscoll.c \
3713d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstod.c \
3723d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstof.c \
37301ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoimax.c \
3743d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstol.c \
3753d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstold.c \
3763d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoll.c \
3773d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstombs.c \
3783d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoul.c \
3793d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoull.c \
38001ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoumax.c \
381ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/locale/wcsxfrm.c \
3823d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wctob.c \
3835a0aa3dee247a313f04252cf45608097695d5953Elliott Hughes    upstream-openbsd/lib/libc/locale/wctomb.c \
3846a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/htonl.c \
3856a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/htons.c \
3866a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_addr.c \
3876a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_lnaof.c \
3886a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_makeaddr.c \
3896a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_netof.c \
3906a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_network.c \
3916a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_ntoa.c \
392f51d3e87671110c508f0f71d9bcb1bf54c22ca3bElliott Hughes    upstream-openbsd/lib/libc/net/inet_ntop.c \
3936a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/inet_pton.c \
3946a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/ntohl.c \
3956a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4Elliott Hughes    upstream-openbsd/lib/libc/net/ntohs.c \
396ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/asprintf.c \
397ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/clrerr.c \
398fcac8ff97f6b6cced6546e0096cadc1039b68b5eElliott Hughes    upstream-openbsd/lib/libc/stdio/dprintf.c \
3995a69da8d7af6a388a4ad5b3dd619017b0030031aElliott Hughes    upstream-openbsd/lib/libc/stdio/fclose.c \
400ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fdopen.c \
401ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/feof.c \
40253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/ferror.c \
40353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fflush.c \
404ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetc.c \
405ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetln.c \
406ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetpos.c \
407ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgets.c \
40801ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetwc.c \
409c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fgetws.c \
410ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fileno.c \
411a71b4c3f144a516826e8ac5b262099b920c49ce0Elliott Hughes    upstream-openbsd/lib/libc/stdio/flags.c \
4126b841db2baa24ffcf2a4e5f975d1d07f1699b918Elliott Hughes    upstream-openbsd/lib/libc/stdio/fmemopen.c \
4135a69da8d7af6a388a4ad5b3dd619017b0030031aElliott Hughes    upstream-openbsd/lib/libc/stdio/fopen.c \
414ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fprintf.c \
41553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fpurge.c \
416ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fputc.c \
41753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fputs.c \
418c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fputwc.c \
419c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fputws.c \
420ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/freopen.c \
421ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fscanf.c \
42253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fseek.c \
423ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fsetpos.c \
424ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/ftell.c \
425ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/funopen.c \
4269d3c2dd11f5e796cd814cddc5b907494f859058eElliott Hughes    upstream-openbsd/lib/libc/stdio/fvwrite.c \
427ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwalk.c \
428c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fwide.c \
42994336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwprintf.c \
430792ae72e41923800ba8797d87a76346cb2de14b9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwrite.c \
43101ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwscanf.c \
432ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getc.c \
433ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getchar.c \
434ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getdelim.c \
43553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/getline.c \
43653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/gets.c \
437c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/getwc.c \
438c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/getwchar.c \
439623b0d05bd924e7fa3c155492695123c87c3a2b1Dmitriy Ivanov    upstream-openbsd/lib/libc/stdio/makebuf.c \
44065935979311373f2c7fa27cbfc189f49b188ca3aElliott Hughes    upstream-openbsd/lib/libc/stdio/mktemp.c \
4416b841db2baa24ffcf2a4e5f975d1d07f1699b918Elliott Hughes    upstream-openbsd/lib/libc/stdio/open_memstream.c \
4426b841db2baa24ffcf2a4e5f975d1d07f1699b918Elliott Hughes    upstream-openbsd/lib/libc/stdio/open_wmemstream.c \
443ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/perror.c \
444ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/printf.c \
44553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/putc.c \
446ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/putchar.c \
447ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/puts.c \
448c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/putwc.c \
449c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/putwchar.c \
450ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/refill.c \
451ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/remove.c \
452ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/rewind.c \
45353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/rget.c \
45453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/scanf.c \
455ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/setbuf.c \
456ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/setbuffer.c \
457623b0d05bd924e7fa3c155492695123c87c3a2b1Dmitriy Ivanov    upstream-openbsd/lib/libc/stdio/setvbuf.c \
458603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/sscanf.c \
45994336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/swprintf.c \
46001ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/swscanf.c \
461ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/tempnam.c \
462ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/tmpnam.c \
463ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/ungetc.c \
46401ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/ungetwc.c \
465ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vasprintf.c \
466fcac8ff97f6b6cced6546e0096cadc1039b68b5eElliott Hughes    upstream-openbsd/lib/libc/stdio/vdprintf.c \
4670549371bd74ba7c7a5a16c2a7d6cc17dbe0e6f97Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfprintf.c \
468603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfscanf.c \
46994336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfwprintf.c \
47001ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfwscanf.c \
471ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vprintf.c \
472ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vscanf.c \
473ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsnprintf.c \
474ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsprintf.c \
475603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsscanf.c \
47694336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vswprintf.c \
47701ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vswscanf.c \
47894336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vwprintf.c \
47901ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vwscanf.c \
480ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/wbuf.c \
48194336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/wprintf.c \
48201ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/wscanf.c \
48353b24382f5299931af5d08c933a765334a092c56Elliott Hughes    upstream-openbsd/lib/libc/stdio/wsetup.c \
48453c3c271dc9927dd280981fc23409af60f460007Dmitriy Ivanov    upstream-openbsd/lib/libc/stdlib/atexit.c \
48553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atoi.c \
48653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atol.c \
487ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atoll.c \
48858d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    upstream-openbsd/lib/libc/stdlib/getenv.c \
48949eed7db79bd2664a2a13552ad81d445c93ba462Elliott Hughes    upstream-openbsd/lib/libc/stdlib/insque.c \
4903e424d0a241f8ae5194514dabc4ad899f5a5416dElliott Hughes    upstream-openbsd/lib/libc/stdlib/lsearch.c \
4912818279ace22fb854b00e668c224492c4dd072a4Elliott Hughes    upstream-openbsd/lib/libc/stdlib/reallocarray.c \
49249eed7db79bd2664a2a13552ad81d445c93ba462Elliott Hughes    upstream-openbsd/lib/libc/stdlib/remque.c \
49358d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    upstream-openbsd/lib/libc/stdlib/setenv.c \
49453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoimax.c \
49553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtol.c \
496ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoll.c \
497ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoul.c \
498ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoull.c \
499ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoumax.c \
5001e4378ea06d06f57027a97714f076ad4f417a705Elliott Hughes    upstream-openbsd/lib/libc/stdlib/system.c \
5013e424d0a241f8ae5194514dabc4ad899f5a5416dElliott Hughes    upstream-openbsd/lib/libc/stdlib/tfind.c \
5023e424d0a241f8ae5194514dabc4ad899f5a5416dElliott Hughes    upstream-openbsd/lib/libc/stdlib/tsearch.c \
503ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strcasecmp.c \
504ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strcspn.c \
505ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strdup.c \
506ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strndup.c \
507ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strpbrk.c \
508ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strsep.c \
509ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strspn.c \
510ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strstr.c \
511ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strtok.c \
51276f8916b904db14facf811ae44e1265261349702Elliott Hughes    upstream-openbsd/lib/libc/string/wmemcpy.c \
513ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/wcslcpy.c \
514d299bcfdad959a3a0adf1683605b15a1c3b3ab66Elliott Hughes    upstream-openbsd/lib/libc/string/wcsstr.c \
515ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/wcswidth.c \
51653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes
5179a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertlibc_pthread_src_files := \
5189a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_atfork.cpp \
5199a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_attr.cpp \
5209a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_cond.cpp \
5219a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_create.cpp \
5229a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_detach.cpp \
5239a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_equal.cpp \
5249a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_exit.cpp \
5259a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_getcpuclockid.cpp \
5269a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_getschedparam.cpp \
5279a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_gettid_np.cpp \
528673b15e4ee2c6d99b150aedddc0f389e29f98e1bYabin Cui    bionic/pthread_internal.cpp \
5299a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_join.cpp \
5309a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_key.cpp \
5319a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_kill.cpp \
5329a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_mutex.cpp \
5339a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_once.cpp \
5349a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_rwlock.cpp \
5359a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_self.cpp \
5369a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_setname_np.cpp \
5379a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_setschedparam.cpp \
5389a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/pthread_sigmask.cpp \
5399a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
540df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanovlibc_thread_atexit_impl_src_files := \
541df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov    bionic/__cxa_thread_atexit_impl.cpp \
542df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov
543f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_arch_static_src_files := \
544f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/dl_iterate_phdr_static.cpp \
5457c83a1ed81a15f3e75836c1ac7d500a952f02e10Christopher Ferris
5461742a32aea4108a8a967e8da2131de30c8808658Colin Cross# Various kinds of LP32 cruft.
5471742a32aea4108a8a967e8da2131de30c8808658Colin Cross# ========================================================
5481742a32aea4108a8a967e8da2131de30c8808658Colin Crosslibc_bionic_src_files_32 += \
5491742a32aea4108a8a967e8da2131de30c8808658Colin Cross    bionic/mmap.cpp \
5501742a32aea4108a8a967e8da2131de30c8808658Colin Cross
5511742a32aea4108a8a967e8da2131de30c8808658Colin Crosslibc_common_src_files_32 += \
5521742a32aea4108a8a967e8da2131de30c8808658Colin Cross    bionic/legacy_32_bit_support.cpp \
5531742a32aea4108a8a967e8da2131de30c8808658Colin Cross    bionic/ndk_cruft.cpp \
5541742a32aea4108a8a967e8da2131de30c8808658Colin Cross    bionic/time64.c \
5551742a32aea4108a8a967e8da2131de30c8808658Colin Cross
5561742a32aea4108a8a967e8da2131de30c8808658Colin Crosslibc_netbsd_src_files_32 += \
5571742a32aea4108a8a967e8da2131de30c8808658Colin Cross    upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
5581742a32aea4108a8a967e8da2131de30c8808658Colin Cross
5591742a32aea4108a8a967e8da2131de30c8808658Colin Crosslibc_openbsd_src_files_32 += \
5601742a32aea4108a8a967e8da2131de30c8808658Colin Cross    upstream-openbsd/lib/libc/stdio/putw.c \
5611742a32aea4108a8a967e8da2131de30c8808658Colin Cross
5621742a32aea4108a8a967e8da2131de30c8808658Colin Cross
563ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags
564ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
5651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \
566470631ed79538ce912edb94505dee3e24af8db89Elliott Hughes    -D_LIBC=1 \
567d286796fce1e6fff407b719a53eb2afbeb96c327Elliott Hughes    -Wall -Wextra -Wunused \
5682ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes
569dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferrisifneq ($(TARGET_USES_LOGD),false)
570dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferrislibc_common_cflags += -DTARGET_USES_LOGD
571dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferrisendif
572dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferris
573b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehuse_clang := $(USE_CLANG_PLATFORM_BUILD)
574b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehifeq ($(use_clang),)
575b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  use_clang := false
576b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehendif
577c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
5782ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
5792ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hugheslibc_common_cflags += \
5802ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=pointer-to-int-cast \
5812ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=int-to-pointer-cast \
5822ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=type-limits \
58365935979311373f2c7fa27cbfc189f49b188ca3aElliott Hughes    -Werror \
5841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
585d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
5861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project  libc_common_cflags += -DDEBUG
5871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif
5881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
5898e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferrisifeq ($(MALLOC_IMPL),dlmalloc)
59072bbd423579bb971dc06cdd3c06201faf3fe95e6Christopher Ferris  libc_common_cflags += -DUSE_DLMALLOC
5918d2410d33d2c4eba6319664c965a750d863c7e05Christopher Ferris  libc_malloc_src := bionic/dlmalloc.c
5928e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferriselse
5938e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferris  libc_common_cflags += -DUSE_JEMALLOC
5948e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferris  libc_malloc_src := bionic/jemalloc_wrapper.cpp
5958e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferris  libc_common_c_includes += external/jemalloc/include
59672bbd423579bb971dc06cdd3c06201faf3fe95e6Christopher Ferrisendif
59772bbd423579bb971dc06cdd3c06201faf3fe95e6Christopher Ferris
5982fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in
5992fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# the appropriate BoardConfig.mk file.
6002fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren#
6012fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renifneq ($(BOARD_MALLOC_ALIGNMENT),)
6022fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren  libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT)
6032fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renendif
6042fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren
605762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common conlyflags
606762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_conlyflags := \
607762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines    -std=gnu99
608762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines
609762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common cppflags
610762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_cppflags := \
611762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines    -std=gnu++11
612762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines
613ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes
614ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
6158e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferrislibc_common_c_includes += \
61676c8b882690dd9025caa625a023996c136377cb1Ying Wang    $(LOCAL_PATH)/stdio   \
6171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
618f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ========================================================
6191742a32aea4108a8a967e8da2131de30c8808658Colin Cross# Add in the arch or 32-bit specific flags
620f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Must be called with $(eval).
621f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(1): the LOCAL_ variable name
622f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(2): the bionic variable name to pull in
623f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangdefine patch-up-arch-specific-flags
624f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_ARCH) += $($(2)_$(TARGET_ARCH))
6251742a32aea4108a8a967e8da2131de30c8808658Colin Cross$(1)_32 += $($(2)_32)
626f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
627f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_2ND_ARCH) += $($(2)_$(TARGET_2ND_ARCH))
628a4c7933b49f1d43579f184167e79a5fb237bd206Raghu Gandhamendif
629f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendef
630f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
6311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
632ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
6336380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes# libc_stack_protector.a - stack protector code
6346334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ========================================================
6356334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich#
6366334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# The stack protector code needs to be compiled
6376334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# with -fno-stack-protector, since it modifies the
6386334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# stack canary.
6396334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
6406334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(CLEAR_VARS)
6416334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
642642331b5dd5647e7d196ac4f44406fd435478a56Elliott HughesLOCAL_SRC_FILES := bionic/__stack_chk_fail.cpp
64365935979311373f2c7fa27cbfc189f49b188ca3aElliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector
644762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
645762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
6466334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_C_INCLUDES := $(libc_common_c_includes)
6476380b51a8d775a3b572b2db15195f279cb5565f6Elliott HughesLOCAL_MODULE := libc_stack_protector
648c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
649d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
6503ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
6516334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_SYSTEM_SHARED_LIBRARIES :=
6525ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
653c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
6546334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
655f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
6566334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(BUILD_STATIC_LIBRARY)
6576334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
6586334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
6596334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ========================================================
660ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# libc_tzcode.a - upstream 'tzcode' code
661ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ========================================================
662ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
663ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(CLEAR_VARS)
664ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
6651fbe6213cdd9fda7e7b816e608b887ad8a0ad265Elliott HughesLOCAL_SRC_FILES := $(call all-c-files-under,tzcode)
666efaa461bd67cfdfcbc2b4c6b69805bc5b929ae05Elliott Hughes# tzcode doesn't include wcsftime, so we use the OpenBSD one.
667efaa461bd67cfdfcbc2b4c6b69805bc5b929ae05Elliott HughesLOCAL_SRC_FILES += upstream-openbsd/lib/libc/time/wcsftime.c
668329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes
669d10db8261949e4d84b65f5c369153d0ca86ab22cElliott HughesLOCAL_CFLAGS := $(libc_common_cflags) \
670d10db8261949e4d84b65f5c369153d0ca86ab22cElliott Hughes    -fvisibility=hidden \
671d10db8261949e4d84b65f5c369153d0ca86ab22cElliott Hughes
672329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Don't use ridiculous amounts of stack.
673329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DALL_STATE
674329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Include tzsetwall, timelocal, timegm, time2posix, and posix2time.
675329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DSTD_INSPIRED
676329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# The name of the tm_gmtoff field in our struct tm.
677329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DTM_GMTOFF=tm_gmtoff
678329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Where we store our tzdata.
679329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DTZDIR=\"/system/usr/share/zoneinfo\"
680329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Include timezone and daylight globals.
681329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DUSG_COMPAT=1
6829a5a3e8e74e2c6d7850ab29711189acf0f7378a2Elliott HughesLOCAL_CFLAGS += -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU
683d10db8261949e4d84b65f5c369153d0ca86ab22cElliott HughesLOCAL_CFLAGS += -Dlint
684329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes
685762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
686762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
687efaa461bd67cfdfcbc2b4c6b69805bc5b929ae05Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) $(LOCAL_PATH)/tzcode/
688ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_MODULE := libc_tzcode
689c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
690d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
6913ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
692ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
6935ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
694c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
695ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
696f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
697ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
698ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
699ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
700ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ========================================================
701eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# libc_dns.a - modified NetBSD DNS code
702eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ========================================================
703eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
704eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(CLEAR_VARS)
705eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
7068563802b04347951d8878747a830987e5ca145f5Elliott HughesLOCAL_SRC_FILES := \
7078563802b04347951d8878747a830987e5ca145f5Elliott Hughes    $(call all-c-files-under,dns) \
7088563802b04347951d8878747a830987e5ca145f5Elliott Hughes    upstream-netbsd/lib/libc/isc/ev_streams.c \
7098563802b04347951d8878747a830987e5ca145f5Elliott Hughes    upstream-netbsd/lib/libc/isc/ev_timers.c \
710891ec7a6e46e60d7dfa1cf229e14a8e8634e272bDan Albert    upstream-netbsd/lib/libc/resolv/mtctxres.c \
7118563802b04347951d8878747a830987e5ca145f5Elliott Hughes
7120f7d882bb7661f9601f3843b0e393b6155cd9571Elliott Hughes# We use the OpenBSD res_random.
7130f7d882bb7661f9601f3843b0e393b6155cd9571Elliott HughesLOCAL_CFLAGS += \
7140f7d882bb7661f9601f3843b0e393b6155cd9571Elliott Hughes    -Dres_randomid=__res_randomid
7150f7d882bb7661f9601f3843b0e393b6155cd9571Elliott HughesLOCAL_SRC_FILES += \
7160f7d882bb7661f9601f3843b0e393b6155cd9571Elliott Hughes    upstream-openbsd/lib/libc/net/res_random.c \
7170f7d882bb7661f9601f3843b0e393b6155cd9571Elliott Hughes
7180f7d882bb7661f9601f3843b0e393b6155cd9571Elliott HughesLOCAL_CFLAGS += \
719eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    $(libc_common_cflags) \
720205c7887add8b8c85434c35158138f16265beb28Elliott Hughes    -DANDROID_CHANGES \
721eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    -DINET6 \
7228563802b04347951d8878747a830987e5ca145f5Elliott Hughes    -fvisibility=hidden \
72365935979311373f2c7fa27cbfc189f49b188ca3aElliott Hughes    -Wno-unused-parameter \
7248563802b04347951d8878747a830987e5ca145f5Elliott Hughes    -include netbsd-compat.h \
7254c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
726eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
727eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
72891b403cef62a5f1c727c3ed7395ea83852c4a2abColin CrossLOCAL_C_INCLUDES := $(libc_common_c_includes) \
72991b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/dns/include \
73091b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/private \
73191b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
73291b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-netbsd/android/include \
73391b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross
734eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_MODULE := libc_dns
735c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
736eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
7373ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
738eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
7395ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
740c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
741eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
742f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
743eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
744eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
745eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
746eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ========================================================
747f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# libc_freebsd.a - upstream FreeBSD C library code
748f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ========================================================
749f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes#
750f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# These files are built with the freebsd-compat.h header file
751f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# automatically included.
752f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
753f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(CLEAR_VARS)
754f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
755f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files)
756f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_CFLAGS := \
757f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes    $(libc_common_cflags) \
7589a5a3e8e74e2c6d7850ab29711189acf0f7378a2Elliott Hughes    -Wno-sign-compare -Wno-uninitialized \
7594c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -include freebsd-compat.h \
7604c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
761762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
762762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
76391b403cef62a5f1c727c3ed7395ea83852c4a2abColin CrossLOCAL_C_INCLUDES := $(libc_common_c_includes) \
76491b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-freebsd/android/include \
76591b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-freebsd/lib/libc/include \
76691b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross
767f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_MODULE := libc_freebsd
768c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
769d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
7703ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
771f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
7725ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
773c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
774f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
775f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
7767c02d9428ca18ac600f7ba7d51bb24ca71e733f6Elliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_freebsd_src_files))
777f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
778f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
779f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
780f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ========================================================
781f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# libc_netbsd.a - upstream NetBSD C library code
782f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ========================================================
783f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes#
784f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# These files are built with the netbsd-compat.h header file
785f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# automatically included.
786f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
787f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(CLEAR_VARS)
788f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
789f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_netbsd_src_files)
790f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_CFLAGS := \
791f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes    $(libc_common_cflags) \
7929a5a3e8e74e2c6d7850ab29711189acf0f7378a2Elliott Hughes    -Wno-sign-compare -Wno-uninitialized \
793eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    -DPOSIX_MISTAKE \
7944c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -include netbsd-compat.h \
7954c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
796762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
797762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
79891b403cef62a5f1c727c3ed7395ea83852c4a2abColin CrossLOCAL_C_INCLUDES := $(libc_common_c_includes) \
79991b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-netbsd/android/include \
80091b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
80191b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross
802f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_MODULE := libc_netbsd
803c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
804d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
8053ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
806f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
8075ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
808c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
809f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
810f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
811c82c0b7e072491da4818e7de37411fbb2055fce1Dan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_netbsd_src_files))
812f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
813f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
814f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
815f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ========================================================
816a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# libc_openbsd_ndk.a - upstream OpenBSD C library code
817a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# that can be safely included in the libc_ndk.a (doesn't
818a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# contain any troublesome global data or constructors).
819a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# ========================================================
820a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert#
821a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# These files are built with the openbsd-compat.h header file
822a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# automatically included.
823a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
824a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertinclude $(CLEAR_VARS)
825a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
826a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_SRC_FILES := $(libc_upstream_openbsd_ndk_src_files)
827a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
828a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert  # Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
829a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert  LOCAL_CLANG := false
830a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertelse
831a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert  LOCAL_CLANG := $(use_clang)
832a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertendif
833a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
834a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_CFLAGS := \
835a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    $(libc_common_cflags) \
836a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    -Wno-sign-compare \
837a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    -Wno-uninitialized \
838a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    -Wno-unused-parameter \
839a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    -include openbsd-compat.h \
840a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
841a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
842a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_CPPFLAGS := $(libc_common_cppflags)
843a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) \
844a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    $(LOCAL_PATH)/private \
845a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    $(LOCAL_PATH)/upstream-openbsd/android/include \
846a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    $(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
847a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    $(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
848a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
849a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_MODULE := libc_openbsd_ndk
850a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
851a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_CXX_STL := none
852a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
853a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_ADDRESS_SANITIZER := false
854a6395e1fd0ccc818ed6424797690b12f8b690755Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
855a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
856a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
857a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albertinclude $(BUILD_STATIC_LIBRARY)
858a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
859a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert
860a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert# ========================================================
8610133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# libc_openbsd.a - upstream OpenBSD C library code
8620133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ========================================================
8630133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes#
8640133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# These files are built with the openbsd-compat.h header file
8650133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# automatically included.
8660133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
8670133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(CLEAR_VARS)
8680133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
86953e43292aac91bf62995788cd5ca2ceb7caea283Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
870b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
871b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  # Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
872b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  LOCAL_CLANG := false
873b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehelse
874b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  LOCAL_CLANG := $(use_clang)
875b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehendif
876b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh
8770133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CFLAGS := \
8780133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes    $(libc_common_cflags) \
879c08c25b4c9bdd95bfbda56a8c21f51b88c8a692eElliott Hughes    -Wno-sign-compare \
880c08c25b4c9bdd95bfbda56a8c21f51b88c8a692eElliott Hughes    -Wno-uninitialized \
881c08c25b4c9bdd95bfbda56a8c21f51b88c8a692eElliott Hughes    -Wno-unused-parameter \
8824c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -include openbsd-compat.h \
8834c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
8840133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
8850133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
88691b403cef62a5f1c727c3ed7395ea83852c4a2abColin CrossLOCAL_C_INCLUDES := $(libc_common_c_includes) \
88791b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/private \
88891b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-openbsd/android/include \
88991b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
89091b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
89191b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross
8920133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_MODULE := libc_openbsd
8930133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
8943ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
8950133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
8965ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
897c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
8980133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
8990133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
9007c02d9428ca18ac600f7ba7d51bb24ca71e733f6Elliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_openbsd_src_files))
9010133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(BUILD_STATIC_LIBRARY)
9020133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
9030133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
9040133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ========================================================
9054bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# libc_gdtoa.a - upstream OpenBSD C library gdtoa code
9064bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# ========================================================
9074bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes#
9084bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# These files are built with the openbsd-compat.h header file
9094bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# automatically included.
9104bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9114bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughesinclude $(CLEAR_VARS)
9124bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9134bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
9144bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
915b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
916b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  # Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
917b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  LOCAL_CLANG := false
918b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehelse
919b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh  LOCAL_CLANG := $(use_clang)
920b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsiehendif
921b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh
9224bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CFLAGS := \
9234bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_common_cflags) \
9249a5a3e8e74e2c6d7850ab29711189acf0f7378a2Elliott Hughes    -Wno-sign-compare -Wno-uninitialized \
925cce36c187896fb0d4bd36519c4b2e90c502137dcElliott Hughes    -fvisibility=hidden \
926d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include openbsd-compat.h \
9274bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9284bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
9294bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
93091b403cef62a5f1c727c3ed7395ea83852c4a2abColin CrossLOCAL_C_INCLUDES := $(libc_common_c_includes) \
93191b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/private \
93291b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-openbsd/android/include \
93391b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross    $(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
93491b403cef62a5f1c727c3ed7395ea83852c4a2abColin Cross
9354bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_gdtoa
9364bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
9373ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
9384bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
9395ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
940c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
9414bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9424bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
9434bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
9444bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9454bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
9464bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# ========================================================
94729c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# libc_bionic.a - home-grown C library code
94829c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ========================================================
949e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes
95029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(CLEAR_VARS)
95129c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
95229c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SRC_FILES := $(libc_bionic_src_files)
953b6943186ce78105155ba67ab261a970859b190dfElliott HughesLOCAL_CFLAGS := $(libc_common_cflags) \
954b6943186ce78105155ba67ab261a970859b190dfElliott Hughes    -Wframe-larger-than=2048 \
955b6943186ce78105155ba67ab261a970859b190dfElliott Hughes
956a371750681a84c8f0445fa041e817582e12c125fChih-Hung Hsieh# ssse3-strcmp-slm.S does not compile with Clang.
957a371750681a84c8f0445fa041e817582e12c125fChih-Hung HsiehLOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
958a371750681a84c8f0445fa041e817582e12c125fChih-Hung Hsieh
959a371750681a84c8f0445fa041e817582e12c125fChih-Hung Hsieh# memcpy.S, memchr.S, etc. do not compile with Clang.
960a371750681a84c8f0445fa041e817582e12c125fChih-Hung HsiehLOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
961a371750681a84c8f0445fa041e817582e12c125fChih-Hung HsiehLOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
962b58db8b083ce41798a5310616e4f20885cec611fChih-Hung Hsieh
963762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
9648b5df3920f2843c9cdf04160517c1e8b77c992f5Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
9653ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
96629c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_MODULE := libc_bionic
967c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
968d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
9693ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
97029c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
9715ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
972c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
97329c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
974f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
9759a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertinclude $(BUILD_STATIC_LIBRARY)
9769a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9779a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9789a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ========================================================
9799a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# libc_bionic_ndk.a - The portions of libc_bionic that can
9809a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# be safely used in libc_ndk.a (no troublesome global data
9819a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# or constructors).
9829a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ========================================================
9839a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9849a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertinclude $(CLEAR_VARS)
9859a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9869a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SRC_FILES := $(libc_bionic_ndk_src_files)
9879a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags) \
9889a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    -Wframe-larger-than=2048 \
9899a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9909a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ssse3-strcmp-slm.S does not compile with Clang.
9919a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
9929a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9939a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# memcpy.S, memchr.S, etc. do not compile with Clang.
9949a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
9959a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
9969a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
9979a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
9989a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
9999a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
10009a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_MODULE := libc_bionic_ndk
10019a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG := $(use_clang)
10029a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
10039a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CXX_STL := none
10049a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
10059a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDRESS_SANITIZER := false
10069a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
10079a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10089a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
1009f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_src_files))
101029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
101129c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
1012df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanovinclude $(CLEAR_VARS)
1013df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_SRC_FILES := $(libc_thread_atexit_impl_src_files)
101466aa0b61f736678e97a0cfaf975052881a23651bDmitriy IvanovLOCAL_CFLAGS := $(libc_common_cflags) -Wframe-larger-than=2048
1015df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov
1016df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1017df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
1018df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_C_INCLUDES := $(libc_common_c_includes)
1019df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_MODULE := libc_thread_atexit_impl
1020df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov# TODO: Clang tries to use __tls_get_addr which is not supported yet
1021df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov# remove after it is implemented.
1022df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_CLANG := false
1023df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
1024df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_CXX_STL := none
1025df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_SYSTEM_SHARED_LIBRARIES :=
1026df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_ADDRESS_SANITIZER := false
1027df79c330d895af31f39ee301dee62731fa586168Dmitriy IvanovLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1028df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov
1029df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanovinclude $(BUILD_STATIC_LIBRARY)
103029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
103129c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ========================================================
10329a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# libc_pthread.a - pthreads parts that previously lived in
10339a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# libc_bionic.a. Relocated to their own library because
10349a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# they can't be included in libc_ndk.a (as they layout of
10359a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# pthread_t has changed over the years and has ABI
10369a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# compatibility issues).
10379a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ========================================================
10389a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10399a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertinclude $(CLEAR_VARS)
10409a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10419a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SRC_FILES := $(libc_pthread_src_files)
10429a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags) \
10439a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    -Wframe-larger-than=2048 \
10449a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10459a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ssse3-strcmp-slm.S does not compile with Clang.
10469a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
10479a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10489a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# memcpy.S, memchr.S, etc. do not compile with Clang.
10499a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
10509a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
10519a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10529a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
10539a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
10549a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes)
10559a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_MODULE := libc_pthread
10569a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CLANG := $(use_clang)
10579a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
10589a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CXX_STL := none
10599a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
10609a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDRESS_SANITIZER := false
10619a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
10629a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10639a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertinclude $(BUILD_STATIC_LIBRARY)
10649a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10659a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
10669a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert# ========================================================
1067fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# libc_cxa.a - Things traditionally in libstdc++
1068fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1069fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1070fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(CLEAR_VARS)
1071fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1072fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SRC_FILES := $(libc_cxa_src_files)
1073fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags) \
1074fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    -fvisibility=hidden \
1075fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1076fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1077fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CPPFLAGS := $(libc_common_cppflags)
10783ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
1079fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_MODULE := libc_cxa
1080fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CLANG := true # GCC refuses to hide new/delete
1081fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
10823ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
1083fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
10845ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
10856e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# b/17574078: Need to disable coverage until we have a prebuilt libprofile_rt.
10866e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# Since this is a static library built with clang, it needs to link
10876e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# libprofile_rt when it is linked into the final binary. Since the final binary
10886e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# is built with GCC, it won't link libprofile_rt. We can't very easily just add
10896e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# libprofile_rt to all link lines the way we've done for libgcov because
10906e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# libprofile_rt isn't prebuilt, and it would be tricky to write a rule that
10916e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan Albert# would make sure libprofile_rt is built.
10926e9e6ad3bf831ed0b25ce2e6ce586a790044f8daDan AlbertLOCAL_NATIVE_COVERAGE := false
1093fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1094fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(BUILD_STATIC_LIBRARY)
1095fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1096fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1097fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1098b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# libc_syscalls.a
1099b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ========================================================
1100b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
1101b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(CLEAR_VARS)
1102b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
1103f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_ARCH) := $(call all-S-files-under,arch-$(TARGET_ARCH)/syscalls)
1104f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
1105f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(call all-S-files-under,arch-$(TARGET_2ND_ARCH)/syscalls)
1106f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
1107b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_MODULE := libc_syscalls
1108c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1109b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
11103ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
1111b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
11125ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1113c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1114b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
1115b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
1116b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
1117b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
1118b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ========================================================
1119c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# libc_aeabi.a
1120c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# This is an LP32 ARM-only library that needs to be built with -fno-builtin
1121c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# to avoid infinite recursion. For the other architectures we just build an
1122c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# empty library to keep this makefile simple.
1123c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# ========================================================
1124c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
1125c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughesinclude $(CLEAR_VARS)
1126c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
1127c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_SRC_FILES_arm := arch-arm/bionic/__aeabi.c
1128c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_MODULE := libc_aeabi
1129c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1130c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -fno-builtin
1131c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
11323ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
1133c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
11345ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1135c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1136c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
1137c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
1138c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
1139c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes# ========================================================
11409c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# libc_ndk.a
11419c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# Compatibility library for the NDK. This library contains
11429c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# all the parts of libc that are safe to statically link.
11439c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# We can't safely statically link things that can only run
11449c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# on a certain version of the OS. Examples include
11459c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# anything that talks to netd (a large portion of the DNS
11469c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# code) and anything that is dependent on the layout of a
11479c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# data structure that has changed across releases (such as
11489c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# pthread_t).
11499c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# ========================================================
11509c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert
11519c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albertinclude $(CLEAR_VARS)
11529c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert
11539c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan AlbertLOCAL_MODULE := libc_ndk
11542c678e6644a0ac7bfdfb8f199ac2cd0d4ea1153fDan AlbertLOCAL_CLANG := $(use_clang)
11559a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ASFLAGS := $(LOCAL_CFLAGS)
11569a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
11579a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags) -fvisibility=hidden -O0
11589a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CPPFLAGS := $(libc_common_cppflags)
11599a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes)
11609a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDRESS_SANITIZER := false
11619a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
11629a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
11639a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11649a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SRC_FILES := \
11659a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    $(libc_common_src_files) \
11669a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    $(libc_arch_dynamic_src_files) \
11679a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    $(libc_ndk_stub_src_files) \
11689a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    bionic/malloc_debug_common.cpp \
11699a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11709a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_SRC_FILES_arm += \
11719a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    arch-common/bionic/crtbegin_so.c \
11729a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    arch-arm/bionic/atexit_legacy.c \
11739a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    arch-common/bionic/crtend_so.S \
11749c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert
11759a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags) \
11769a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    -DLIBC_STATIC \
11779a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11789a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_WHOLE_STATIC_LIBRARIES := \
11799a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_bionic_ndk \
11809a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_cxa \
11819a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_freebsd \
11829a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_gdtoa \
11839a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_malloc \
11849a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_netbsd \
1185a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    libc_openbsd_ndk \
11869a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_stack_protector \
11879a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_syscalls \
11889a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_tzcode \
11899a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libm \
11909a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11919a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_WHOLE_STATIC_LIBRARIES_arm := libc_aeabi
11929a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_CXX_STL := none
11939a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11949a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertifneq ($(MALLOC_IMPL),dlmalloc)
11959a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc
11969a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albertendif
11979a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
11989a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
11999a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files))
12009a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files))
12019a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS))
12029a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert
12039a9ea3a28099602fe22e36638a44fa36df80fe8eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
12049c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albertinclude $(BUILD_STATIC_LIBRARY)
12059c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert
12069c3fd59b00d6f477b1a7f8611cb4f829d64aa7eaDan Albert# ========================================================
1207ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a
1208ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
1209f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
1210ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS)
12111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1212ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files)
1213eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags)
1214762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1215762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
1216ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes)
12171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common
1218c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1219d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
1220ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES := \
1221ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_bionic \
12229a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_bionic_ndk \
1223fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    libc_cxa \
1224eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    libc_dns \
1225ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_freebsd \
12264bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    libc_gdtoa \
12279b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes    libc_malloc \
1228ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_netbsd \
12290133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes    libc_openbsd \
1230a6395e1fd0ccc818ed6424797690b12f8b690755Dan Albert    libc_openbsd_ndk \
12319a9ea3a28099602fe22e36638a44fa36df80fe8eDan Albert    libc_pthread \
12326380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes    libc_stack_protector \
1233b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes    libc_syscalls \
1234df79c330d895af31f39ee301dee62731fa586168Dmitriy Ivanov    libc_thread_atexit_impl \
1235eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    libc_tzcode \
1236eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
1237c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES_arm := libc_aeabi
1238c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott Hughes
12398e32b7b3543eadbb58a92443fb57d60aac92ef88Christopher Ferrisifneq ($(MALLOC_IMPL),dlmalloc)
12409b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc
124172bbd423579bb971dc06cdd3c06201faf3fe95e6Christopher Ferrisendif
124272bbd423579bb971dc06cdd3c06201faf3fe95e6Christopher Ferris
12433ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
12441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
12451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1246c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang# TODO: split out the asflags.
1247c97c5fc7880267fd835d22946a920bf370461cf2Ying WangLOCAL_ASFLAGS := $(LOCAL_CFLAGS)
12485ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1249c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1250c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang
1251f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
1252f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files))
1253f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS))
12541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY)
12551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
12561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1257ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
125849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a
125949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ========================================================
126049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin#
126149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not
126291a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# include malloc. It's useful in situations when the user wants
126391a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# to provide their own malloc implementation, or wants to
12649029d2f638160b37f65da176acd7ccb3aa0ba891Christopher Ferris# explicitly disallow the use of malloc, such as in the
12659029d2f638160b37f65da176acd7ccb3aa0ba891Christopher Ferris# dynamic linker.
126649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
126749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS)
126849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
126949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \
1270f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_arch_static_src_files) \
1271f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/libc_init_static.cpp
127249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
127349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes)
12746a51defa034a1c033ed01f7de444c0a4fc615249David 'Digit' TurnerLOCAL_CFLAGS := $(libc_common_cflags) \
12754c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -DLIBC_STATIC \
12764c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
1277762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1278762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
127949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
128049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc
1281c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1282d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
128349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
12843ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
128549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES :=
12865ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1287c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
128849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
1289f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
1290f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
129149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY)
129249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
129349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
129449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ========================================================
12959b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes# libc_malloc.a: the _prefixed_ malloc functions (like dlcalloc).
12969b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes# ========================================================
12979b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes
12989b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughesinclude $(CLEAR_VARS)
12999b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_SRC_FILES := $(libc_malloc_src)
13009b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) \
13019b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes    -fvisibility=hidden \
13029b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes
13039b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
13049b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
13059b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
13069b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_MODULE := libc_malloc
1307c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
13083ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
13095ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1310c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
13119b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
13129b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
13139b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes
13149b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes
13159b5235d74e794d29fa912fe95ca3d5ec488dd371Elliott Hughes# ========================================================
13161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a
13171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
13181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
13191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
13201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
1321f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_arch_static_src_files) \
1322f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_common.cpp \
1323f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/libc_init_static.cpp \
13241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1325b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := $(libc_common_cflags) \
13264c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -DLIBC_STATIC \
13274c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
1328762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1329762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
13301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes)
1331ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc
1332c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1333d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
13341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
13353ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
13361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
13375ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1338c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
13391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1340f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
1341f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
13421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY)
13431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
13441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1345ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
13461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so
13471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
13481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
13491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
135065935979311373f2c7fa27cbfc189f49b188ca3aElliott HughesLOCAL_CFLAGS := $(libc_common_cflags)
1351762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1352762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
13534a55c46d308deae70d7d8669c50514d521813dc2Dmitriy Ivanov
13541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes)
13551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
1356e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    $(libc_arch_dynamic_src_files) \
1357e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/malloc_debug_common.cpp \
1358e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/libc_init_dynamic.cpp \
135906e8796ee95793435c194b0a55e26d7b568c7409Sreeram Ramachandran    bionic/NetdClient.cpp \
13601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
13614bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc
1362c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1363914d8d4cff10f023ccd382fb43b2c7833dd34f72Elliott HughesLOCAL_REQUIRED_MODULES := tzdata
1364d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := \
1365d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(libc_common_additional_dependencies) \
1366d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(LOCAL_PATH)/version_script.txt \
13671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
13680ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# Leave the symbols in the shared library so that stack unwinders can produce
13690ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# meaningful name resolution.
13700ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher FerrisLOCAL_STRIP_MODULE := keep_symbols
13710ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris
13721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so!  If you add other libraries,
13731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries.  This
13741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared
13751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it
13761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries.  That would
13774bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# create a "cloaked" dependency on libgcc.a in libc though the libraries, which is not what
13781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted!
13791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
13801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl
13811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
13823ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
13831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
13841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1385d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert# Don't re-export new/delete and friends, even if the compiler really wants to.
1386d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/version_script.txt
1387d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert
138871f9b34fbeef00f3bd34364dadad41bff60b6b1dDan Albert# We'd really like to do this for all architectures, but since this wasn't done
138971f9b34fbeef00f3bd34364dadad41bff60b6b1dDan Albert# before, these symbols must continue to be exported on LP32 for binary
139071f9b34fbeef00f3bd34364dadad41bff60b6b1dDan Albert# compatibility.
139176e1cbca75e9fdaf7a7943f2c58e65433b283f4aElliott Hughes# TODO: disabled for http://b/20065774.
139276e1cbca75e9fdaf7a7943f2c58e65433b283f4aElliott Hughes#LOCAL_LDFLAGS_64 := -Wl,--exclude-libs,libgcc.a
139371f9b34fbeef00f3bd34364dadad41bff60b6b1dDan Albert
1394d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert# TODO: This is to work around b/19059885. Remove after root cause is fixed
1395d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_LDFLAGS_arm := -Wl,--hash-style=sysv
1396d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert
1397f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
139876c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files))
1399f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# special for arm
1400f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_NO_CRT_arm := true
1401f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS_arm += -DCRT_LEGACY_WORKAROUND
1402e09ab2cc2ff41ce7519c143d448371ddd62afc59Colin CrossLOCAL_ASFLAGS_arm += $(libc_crt_target_cflags)
1403f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_arm += \
1404f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-common/bionic/crtbegin_so.c \
1405e09ab2cc2ff41ce7519c143d448371ddd62afc59Colin Cross    arch-common/bionic/crtbrand.S \
1406f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-arm/bionic/atexit_legacy.c \
1407f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-common/bionic/crtend_so.S
14085ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1409c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1410f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
14111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY)
14121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
14131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1414b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# For all builds, except for the -user build we will enable memory
1415b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# allocation checking (including memory leaks, buffer overwrites, etc.)
1416b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Note that all these checks are also controlled by env. settings
1417b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# that can enable, or disable specific checks. Note also that some of
1418b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# the checks are available only in emulator and are implemeted in
1419b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_qemu_instrumented.so.
1420b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineifneq ($(TARGET_BUILD_VARIANT),user)
1421b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1422ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
1423b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_leak.so
14241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
14251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
14261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
14276fe376d3925a788f60fd44280b00008af60b9334Christopher FerrisLOCAL_CFLAGS := $(libc_common_cflags)
1428762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1429762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
14301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1431861c0ef37bcfcae56d88572cb01c18bcfe1fadedChristopher Ferris# Make sure that unwind.h comes from libunwind.
1432861c0ef37bcfcae56d88572cb01c18bcfe1fadedChristopher FerrisLOCAL_C_INCLUDES := \
1433861c0ef37bcfcae56d88572cb01c18bcfe1fadedChristopher Ferris    $(libc_common_c_includes) \
14341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
14351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
1436f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/debug_mapinfo.cpp \
1437f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/debug_stacktrace.cpp \
1438dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferris    bionic/libc_logging.cpp \
1439f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_leak.cpp \
1440f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_check.cpp \
14411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
14424bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_malloc_debug_leak
1443c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1444d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := \
1445d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(libc_common_additional_dependencies) \
1446d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(LOCAL_PATH)/version_script.txt \
14471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1448e007775f4b21f6b94078ed1d34b753435ba28fdaPavel ChupinLOCAL_SHARED_LIBRARIES := libc libdl
144990a29db0f4a0893bdbd12f656d8869bb79ec3900Dan AlbertLOCAL_CXX_STL := none
145090a29db0f4a0893bdbd12f656d8869bb79ec3900Dan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES :=
1451a7c2e0bad678280b9d76eacdb50b1361ab0849ffDan Albert# Only need this for arm since libc++ uses its own unwind code that
1452a7c2e0bad678280b9d76eacdb50b1361ab0849ffDan Albert# doesn't mix with the other default unwind code.
14536e54c3e519892ca13f15bdcea0d431befbadac25Elliott HughesLOCAL_STATIC_LIBRARIES_arm := libunwind_llvm
14546e54c3e519892ca13f15bdcea0d431befbadac25Elliott HughesLOCAL_STATIC_LIBRARIES += libc++abi
1455aa46fa24035f3ab020f9a7abd86c25ae2196bb32Bruce BeareLOCAL_ALLOW_UNDEFINED_SYMBOLS := true
1456368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev
1457d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert# Don't re-export new/delete and friends, even if the compiler really wants to.
1458d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/version_script.txt
1459d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert
1460b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't install on release build
1461b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug
14625ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1463c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
14641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1465f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
1466b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(BUILD_SHARED_LIBRARY)
1467b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1468b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1469b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ========================================================
1470b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_qemu.so
1471b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ========================================================
1472b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(CLEAR_VARS)
1473b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1474b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := \
1475f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_common_cflags) \
14764c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes    -DMALLOC_QEMU_INSTRUMENT \
14774c2da039baa6c621c78afa47ead85ec9e028f56dElliott Hughes
1478762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
1479762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
1480b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1481b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_C_INCLUDES := $(libc_common_c_includes)
1482b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1483b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SRC_FILES := \
1484dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferris    bionic/libc_logging.cpp \
1485dda1c6c466c4f31de31d76c8be7e46c16b4b4209Christopher Ferris    bionic/malloc_debug_qemu.cpp \
1486b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
14874bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_malloc_debug_qemu
1488c999f76977d2389a3e2dcbdd98f20d93c3193727Elliott HughesLOCAL_CLANG := $(use_clang)
1489d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := \
1490d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(libc_common_additional_dependencies) \
1491d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert    $(LOCAL_PATH)/version_script.txt \
1492b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
14937c0c3793722aea293c45921ef50e4adcdf9645ceMathias AgopianLOCAL_SHARED_LIBRARIES := libc libdl
14943ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
14951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
1496368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev
1497d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert# Don't re-export new/delete and friends, even if the compiler really wants to.
1498d6bf3d5e19f192dc1949b573d931d487c42730faDan AlbertLOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/version_script.txt
1499d6bf3d5e19f192dc1949b573d931d487c42730faDan Albert
15001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build
1501b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug
15025ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1503c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
15041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1505f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
15061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY)
15071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
1508f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif  #!user
1509b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
1510fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1511fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# libstdc++.so
1512fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1513fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertlibstdcxx_common_src_files := \
1514fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/__cxa_guard.cpp \
1515fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/__cxa_pure_virtual.cpp \
1516fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/new.cpp \
1517fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert    bionic/libc_logging.cpp \
1518fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1519fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(CLEAR_VARS)
15203ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
1521fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags)
1522d9ff7226613014056c9edd79a68dc5af939107a0Dmitriy IvanovLOCAL_CPPFLAGS := $(libc_common_cppflags)
15234a55c46d308deae70d7d8669c50514d521813dc2Dmitriy Ivanov
15244a55c46d308deae70d7d8669c50514d521813dc2Dmitriy Ivanov# TODO: This is to work around b/19059885. Remove after root cause is fixed
1525402d19945092eee87cfb6c029c98ccb4fb40d2c6Dmitriy IvanovLOCAL_LDFLAGS_arm := -Wl,--hash-style=sysv
15264a55c46d308deae70d7d8669c50514d521813dc2Dmitriy Ivanov
1527fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SRC_FILES := $(libstdcxx_common_src_files)
1528fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_MODULE:= libstdc++
1529fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
15303ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
1531fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES := libc
15325ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1533c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1534fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(BUILD_SHARED_LIBRARY)
1535fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1536fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1537fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# libstdc++.a
1538fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert# ========================================================
1539fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(CLEAR_VARS)
15403ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_C_INCLUDES := $(libc_common_c_includes) bionic/libstdc++/include
1541fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_CFLAGS := $(libc_common_cflags)
1542d9ff7226613014056c9edd79a68dc5af939107a0Dmitriy IvanovLOCAL_CPPFLAGS := $(libc_common_cppflags)
1543fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SRC_FILES := $(libstdcxx_common_src_files)
1544fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_MODULE:= libstdc++
1545fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
15463ec67de0513c1d7e5f41f7f17e8251122a0cc9d2Dan AlbertLOCAL_CXX_STL := none
1547fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan AlbertLOCAL_SYSTEM_SHARED_LIBRARIES := libc
15485ba672ebcb0bbb77f22bbc6c98ec03867ac1711dDan AlbertLOCAL_ADDRESS_SANITIZER := false
1549c2d39088d8c6f621dbde0410a1fc24b9f9e7f824Dan AlbertLOCAL_NATIVE_COVERAGE := $(bionic_coverage)
1550fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albertinclude $(BUILD_STATIC_LIBRARY)
1551fd5ee9aebc0a43c7f36a0778c7f416b39ddb870eDan Albert
1552b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
15531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
15541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH))
1555