blob: 2a5b47ec5029d162d74aca6169a18d6586e4ee8f [file] [log] [blame]
Colin Cross2722ebb2016-07-11 16:20:06 -07001//
2// Copyright (C) 2012 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_defaults {
18 name: "bionic_tests_defaults",
19 host_supported: true,
20 target: {
21 darwin: {
22 enabled: false,
23 },
24 },
25 cflags: [
26 "-fstack-protector-all",
27 "-g",
28 "-Wall",
29 "-Wextra",
30 "-Wunused",
31 "-Werror",
32 "-fno-builtin",
33
34 // We want to test deprecated API too.
35 "-Wno-deprecated-declarations",
36
37 // For glibc.
38 "-D__STDC_LIMIT_MACROS",
39 ],
40 stl: "libc++",
41 sanitize: {
42 never: true,
43 },
44}
45
46// -----------------------------------------------------------------------------
47// All standard tests.
48// -----------------------------------------------------------------------------
49
50cc_test_library {
51 name: "libBionicStandardTests",
52 defaults: ["bionic_tests_defaults"],
53 srcs: [
54 "arpa_inet_test.cpp",
Christopher Ferris7a3681e2017-04-24 17:48:32 -070055 "async_safe_test.cpp",
Elliott Hughesf6495c72016-07-25 09:20:57 -070056 "assert_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070057 "buffer_tests.cpp",
58 "bug_26110743_test.cpp",
59 "complex_test.cpp",
60 "ctype_test.cpp",
61 "dirent_test.cpp",
Elliott Hughesd390df12017-04-30 22:56:10 -070062 "elf_test.cpp",
Elliott Hughesba267f42017-02-24 16:19:53 -080063 "endian_test.cpp",
Elliott Hughese452cb12017-06-13 14:43:53 -070064 "errno_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070065 "error_test.cpp",
66 "eventfd_test.cpp",
67 "fcntl_test.cpp",
68 "fenv_test.cpp",
69 "ftw_test.cpp",
70 "getauxval_test.cpp",
71 "getcwd_test.cpp",
72 "grp_pwd_test.cpp",
73 "ifaddrs_test.cpp",
74 "inttypes_test.cpp",
Elliott Hughesfc8e6882016-11-18 16:27:29 -080075 "langinfo_test.cpp",
Josh Gao7d15dc32017-03-13 17:10:46 -070076 "leak_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070077 "libgen_basename_test.cpp",
78 "libgen_test.cpp",
Christopher Ferrisee1e0a32017-04-20 13:38:49 -070079 "linux_swab_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070080 "locale_test.cpp",
81 "malloc_test.cpp",
82 "math_test.cpp",
83 "mntent_test.cpp",
84 "netdb_test.cpp",
85 "net_if_test.cpp",
86 "netinet_ether_test.cpp",
87 "netinet_in_test.cpp",
88 "netinet_udp_test.cpp",
89 "nl_types_test.cpp",
90 "pthread_test.cpp",
91 "pty_test.cpp",
Xin Li4b1a3992017-05-19 10:13:08 -070092 "qsort_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070093 "regex_test.cpp",
94 "resolv_test.cpp",
95 "sched_test.cpp",
Elliott Hughes50599392017-05-25 17:13:32 -070096 "scsi_sg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070097 "search_test.cpp",
98 "semaphore_test.cpp",
99 "setjmp_test.cpp",
100 "signal_test.cpp",
101 "stack_protector_test.cpp",
102 "stack_protector_test_helper.cpp",
103 "stack_unwinding_test.cpp",
104 "stdatomic_test.cpp",
105 "stdint_test.cpp",
106 "stdio_nofortify_test.cpp",
107 "stdio_test.cpp",
108 "stdio_ext_test.cpp",
109 "stdlib_test.cpp",
110 "string_nofortify_test.cpp",
111 "string_test.cpp",
112 "string_posix_strerror_r_test.cpp",
113 "strings_nofortify_test.cpp",
114 "strings_test.cpp",
115 "sstream_test.cpp",
116 "sys_epoll_test.cpp",
117 "sys_mman_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700118 "sys_msg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700119 "sys_personality_test.cpp",
120 "sys_prctl_test.cpp",
121 "sys_procfs_test.cpp",
122 "sys_ptrace_test.cpp",
123 "sys_quota_test.cpp",
124 "sys_resource_test.cpp",
125 "sys_select_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700126 "sys_sem_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700127 "sys_sendfile_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700128 "sys_shm_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700129 "sys_socket_test.cpp",
130 "sys_stat_test.cpp",
131 "sys_statvfs_test.cpp",
132 "sys_syscall_test.cpp",
133 "sys_sysinfo_test.cpp",
134 "sys_sysmacros_test.cpp",
135 "sys_time_test.cpp",
136 "sys_timex_test.cpp",
137 "sys_types_test.cpp",
138 "sys_uio_test.cpp",
139 "sys_vfs_test.cpp",
140 "sys_xattr_test.cpp",
141 "system_properties_test.cpp",
Dimitry Ivanov16b2a4d2017-01-24 20:43:29 +0000142 "system_properties_test2.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700143 "time_test.cpp",
144 "uchar_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700145 "unistd_nofortify_test.cpp",
146 "unistd_test.cpp",
147 "utmp_test.cpp",
148 "wchar_test.cpp",
149 "wctype_test.cpp",
150 ],
151
152 include_dirs: [
153 "bionic/libc",
154 "external/tinyxml2",
155 ],
156
Christopher Ferris7a3681e2017-04-24 17:48:32 -0700157 target: {
158 android: {
159 whole_static_libs: ["libasync_safe"],
160 },
161 },
162
Dan Willemsen41567702016-08-31 16:35:01 -0700163 static_libs: [
164 "libtinyxml2",
165 "liblog",
166 "libbase",
167 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700168 host_ldlibs: ["-lrt"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700169 shared: {
170 enabled: false,
171 },
Elliott Hughes3f6eee92016-12-13 23:47:25 +0000172
173 generated_headers: ["generated_android_ids"],
Colin Cross2722ebb2016-07-11 16:20:06 -0700174}
175
176// -----------------------------------------------------------------------------
177// Fortify tests.
178// -----------------------------------------------------------------------------
179
180cc_defaults {
181 name: "bionic_fortify_tests_defaults",
182 cflags: [
183 "-Wno-error",
184 "-U_FORTIFY_SOURCE",
185 ],
186 srcs: ["fortify_test_main.cpp"],
187 target: {
188 host: {
189 clang_cflags: ["-D__clang__"],
190 },
191 },
192}
193
194cc_test_library {
Colin Cross2722ebb2016-07-11 16:20:06 -0700195 name: "libfortify1-tests-clang",
196 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
197 clang: true,
198 cflags: [
199 "-D_FORTIFY_SOURCE=1",
200 "-DTEST_NAME=Fortify1_clang"
201 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700202 shared: {
203 enabled: false,
204 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700205}
206
207cc_test_library {
208 name: "libfortify2-tests-clang",
209 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
210 clang: true,
211 cflags: [
212 "-D_FORTIFY_SOURCE=2",
213 "-DTEST_NAME=Fortify2_clang"
214 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700215 shared: {
216 enabled: false,
217 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700218}
219
220// -----------------------------------------------------------------------------
221// Library of all tests (excluding the dynamic linker tests).
222// -----------------------------------------------------------------------------
223cc_test_library {
224 name: "libBionicTests",
225 defaults: ["bionic_tests_defaults"],
226 whole_static_libs: [
227 "libBionicStandardTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700228 "libfortify1-tests-clang",
229 "libfortify2-tests-clang",
230 ],
Dan Willemsen41567702016-08-31 16:35:01 -0700231 shared: {
232 enabled: false,
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700233 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700234}
235
236// -----------------------------------------------------------------------------
237// Library of bionic customized gtest main function, with simplified output format.
238// -----------------------------------------------------------------------------
239cc_test_library {
240 name: "libBionicGtestMain",
241 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700242 srcs: [
243 "gtest_main.cpp",
244 "gtest_globals.cpp",
245 ],
246 static_libs: [
247 "libbase",
248 ],
249 include_dirs: [
250 "bionic/libc",
251 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700252 target: {
253 darwin: {
254 enabled: true,
255 },
256 },
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700257 shared: {
258 enabled: false,
259 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700260}
261
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700262cc_test_library {
263 name: "libBionicLoaderTests",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800264 defaults: ["bionic_tests_defaults", "llvm-defaults"],
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700265 srcs: [
266 "atexit_test.cpp",
267 "dl_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700268 "dlfcn_symlink_support.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700269 "dlfcn_test.cpp",
Elliott Hughes7c10abb2017-04-21 17:15:41 -0700270 "link_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700271 "pthread_dlfcn_test.cpp",
272 ],
273 static_libs: [
274 "libbase",
275 ],
276 include_dirs: [
277 "bionic/libc",
278 ],
279 shared: {
280 enabled: false,
281 },
282 target: {
283 android: {
284 srcs: [
Evgenii Stepanov0a3637d2016-07-06 13:20:59 -0700285 "cfi_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700286 "dlext_test.cpp",
287 "libdl_test.cpp",
288 ],
289 static_libs: [
290 "libpagemap",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800291 "libLLVMObject",
292 "libLLVMBitReader",
293 "libLLVMMC",
294 "libLLVMMCParser",
295 "libLLVMCore",
296 "libLLVMSupport",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700297 ],
298 }
299 }
300}
301
Colin Cross2722ebb2016-07-11 16:20:06 -0700302// -----------------------------------------------------------------------------
303// Library of bionic customized gtest main function, with normal gtest output format,
304// which is needed by bionic cts test.
305// -----------------------------------------------------------------------------
306cc_test_library {
307 name: "libBionicCtsGtestMain",
308 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700309 srcs: [
310 "gtest_main.cpp",
311 "gtest_globals_cts.cpp",
312 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700313 cppflags: ["-DUSING_GTEST_OUTPUT_FORMAT"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700314 shared: {
315 enabled: false,
316 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700317}
318
319// -----------------------------------------------------------------------------
320// Tests for the device using bionic's .so. Run with:
321// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests32
322// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests64
323// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc32
324// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc64
325// -----------------------------------------------------------------------------
326cc_defaults {
327 name: "bionic_unit_tests_defaults",
328 host_supported: false,
329
330 whole_static_libs: [
331 "libBionicTests",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700332 "libBionicLoaderTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700333 "libBionicGtestMain",
334 ],
335
336 static_libs: [
337 "libtinyxml2",
338 "liblog",
339 "libbase",
340 ],
341
342 srcs: [
343 // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+)
Colin Cross2722ebb2016-07-11 16:20:06 -0700344 "__cxa_thread_atexit_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700345 "thread_local_test.cpp",
346 ],
347
348 conlyflags: [
349 "-fexceptions",
350 "-fnon-call-exceptions",
351 ],
352
353 ldflags: ["-Wl,--export-dynamic"],
354
355 include_dirs: ["bionic/libc"],
356
Yabin Cui1f553ea2017-01-13 12:31:59 -0800357 stl: "libc++_static",
358
Colin Cross2722ebb2016-07-11 16:20:06 -0700359 target: {
360 android: {
361 shared_libs: [
362 "libdl",
Colin Cross2722ebb2016-07-11 16:20:06 -0700363 "libdl_preempt_test_1",
364 "libdl_preempt_test_2",
365 "libdl_test_df_1_global",
366 ],
367 static_libs: [
368 // The order of these libraries matters, do not shuffle them.
369 "libbase",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700370 "libpagemap",
Colin Cross2722ebb2016-07-11 16:20:06 -0700371 "libziparchive",
372 "libz",
373 "libutils",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800374 "libLLVMObject",
375 "libLLVMBitReader",
376 "libLLVMMC",
377 "libLLVMMCParser",
378 "libLLVMCore",
379 "libLLVMSupport",
Colin Cross2722ebb2016-07-11 16:20:06 -0700380 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700381 ldflags: [
Colin Cross7b294952016-09-29 14:08:13 -0700382 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700383 "-Wl,--enable-new-dtags",
384 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700385 },
386 }
387}
388
389cc_test {
390 name: "bionic-unit-tests",
391 defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"],
392 clang: true,
Elliott Hughesa57ca0d2016-11-17 18:18:08 -0800393
394 target: {
395 android: {
396 shared_libs: ["libicuuc"],
397 },
398 },
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700399
400 required: [
401 "cfi_test_helper",
402 "cfi_test_helper2",
403 "libtest_dt_runpath_a",
404 "libtest_dt_runpath_b",
405 "libtest_dt_runpath_c",
406 "libtest_dt_runpath_x",
407 "libatest_simple_zip",
408 "libcfi-test",
409 "libcfi-test-bad",
410 "libdlext_test_different_soname",
411 "libdlext_test_fd",
412 "libdlext_test_norelro",
413 "libdlext_test_runpath_zip_zipaligned",
414 "libdlext_test",
415 "libdlext_test_zip",
416 "libdlext_test_zip_zipaligned",
417 "libdl_preempt_test_1",
418 "libdl_preempt_test_2",
419 "libdl_test_df_1_global",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700420 "libgnu-hash-table-library",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700421 "libsysv-hash-table-library",
422 "libtest_atexit",
423 "libtest_check_order_dlsym_1_left",
424 "libtest_check_order_dlsym_2_right",
425 "libtest_check_order_dlsym_3_c",
426 "libtest_check_order_dlsym_a",
427 "libtest_check_order_dlsym_b",
428 "libtest_check_order_dlsym_d",
429 "libtest_check_order_dlsym",
430 "libtest_check_order_reloc_root_1",
431 "libtest_check_order_reloc_root_2",
432 "libtest_check_order_reloc_root",
433 "libtest_check_order_reloc_siblings_1",
434 "libtest_check_order_reloc_siblings_2",
435 "libtest_check_order_reloc_siblings_3",
436 "libtest_check_order_reloc_siblings_a",
437 "libtest_check_order_reloc_siblings_b",
438 "libtest_check_order_reloc_siblings_c_1",
439 "libtest_check_order_reloc_siblings_c_2",
440 "libtest_check_order_reloc_siblings_c",
441 "libtest_check_order_reloc_siblings_d",
442 "libtest_check_order_reloc_siblings_e",
443 "libtest_check_order_reloc_siblings_f",
444 "libtest_check_order_reloc_siblings",
445 "libtest_check_rtld_next_from_library",
446 "libtest_dlopen_from_ctor_main",
447 "libtest_dlopen_from_ctor",
448 "libtest_dlopen_weak_undefined_func",
449 "libtest_dlsym_df_1_global",
450 "libtest_dlsym_from_this_child",
451 "libtest_dlsym_from_this_grandchild",
452 "libtest_dlsym_from_this",
453 "libtest_dlsym_weak_func",
454 "libtest_dt_runpath_d",
455 "libtest_empty",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700456 "libtest_ifunc",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700457 "libtest_init_fini_order_child",
458 "libtest_init_fini_order_grand_child",
459 "libtest_init_fini_order_root2",
460 "libtest_init_fini_order_root",
461 "libtest_nodelete_1",
462 "libtest_nodelete_2",
463 "libtest_nodelete_dt_flags_1",
464 "libtest_pthread_atfork",
465 "libtest_relo_check_dt_needed_order_1",
466 "libtest_relo_check_dt_needed_order_2",
467 "libtest_relo_check_dt_needed_order",
468 "libtest_simple",
469 "libtest_two_parents_child",
470 "libtest_two_parents_parent1",
471 "libtest_two_parents_parent2",
472 "libtest_versioned_lib",
473 "libtest_versioned_libv1",
474 "libtest_versioned_libv2",
475 "libtest_versioned_otherlib_empty",
476 "libtest_versioned_otherlib",
477 "libtest_versioned_uselibv1",
478 "libtest_versioned_uselibv2_other",
479 "libtest_versioned_uselibv2",
480 "libtest_versioned_uselibv3_other",
481 "libtest_with_dependency_loop_a",
482 "libtest_with_dependency_loop_b",
483 "libtest_with_dependency_loop_c",
484 "libtest_with_dependency_loop",
485 "libtest_with_dependency",
486 "libtest_invalid-empty_shdr_table.so",
487 "libtest_invalid-rw_load_segment.so",
488 "libtest_invalid-unaligned_shdr_offset.so",
489 "libtest_invalid-zero_shdr_table_content.so",
490 "libtest_invalid-zero_shdr_table_offset.so",
491 "libtest_invalid-zero_shentsize.so",
492 "libtest_invalid-zero_shstrndx.so",
493 "libtest_invalid-textrels.so",
494 "libtest_invalid-textrels2.so",
495 "preinit_getauxval_test_helper",
496 "preinit_syscall_test_helper",
497 "libnstest_private_external",
498 "libnstest_dlopened",
499 "libnstest_private",
500 "libnstest_root_not_isolated",
501 "libnstest_root",
502 "libnstest_public",
503 "libnstest_public_internal",
504 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700505}
506
Colin Cross2722ebb2016-07-11 16:20:06 -0700507// -----------------------------------------------------------------------------
508// Tests for the device linked against bionic's static library. Run with:
509// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static32
510// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static64
511// -----------------------------------------------------------------------------
512cc_test {
513 name: "bionic-unit-tests-static",
514 defaults: ["bionic_tests_defaults"],
515 host_supported: false,
516
Dimitry Ivanov462ea662017-01-06 14:49:57 -0800517 srcs: [
518 "gtest_preinit_debuggerd.cpp",
519 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700520 whole_static_libs: [
521 "libBionicTests",
522 "libBionicGtestMain",
523 ],
524
525 static_libs: [
526 "libm",
527 "libc",
528 "libc++_static",
529 "libdl",
530 "libtinyxml2",
531 "liblog",
532 "libbase",
Josh Gao2a3b4fa2016-10-26 17:55:49 -0700533 "libdebuggerd_handler",
Colin Cross2722ebb2016-07-11 16:20:06 -0700534 ],
535
536 static_executable: true,
537 stl: "libc++_static",
538
539 // libc and libc++ both define std::nothrow. libc's is a private symbol, but this
540 // still causes issues when linking libc.a and libc++.a, since private isn't
541 // effective until it has been linked. To fix this, just allow multiple symbol
542 // definitions for the static tests.
543 ldflags: ["-Wl,--allow-multiple-definition"],
544}
545
546// -----------------------------------------------------------------------------
547// Tests to run on the host and linked against glibc. Run with:
548// cd bionic/tests; mm bionic-unit-tests-glibc-run
549// -----------------------------------------------------------------------------
550
551cc_test_host {
552 name: "bionic-unit-tests-glibc",
553 defaults: ["bionic_tests_defaults"],
554
555 srcs: [
556 "atexit_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700557 "dlfcn_symlink_support.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700558 "dlfcn_test.cpp",
559 "dl_test.cpp",
560 "pthread_dlfcn_test.cpp",
561 ],
562
563 shared_libs: [
564 "libdl_preempt_test_1",
565 "libdl_preempt_test_2",
566
567 "libdl_test_df_1_global",
568 ],
569
570 whole_static_libs: [
571 "libBionicStandardTests",
572 "libBionicGtestMain",
Colin Cross2722ebb2016-07-11 16:20:06 -0700573 "libfortify1-tests-clang",
574 "libfortify2-tests-clang",
575 ],
576
577 static_libs: [
578 "libbase",
579 "liblog",
580 "libcutils",
581 ],
582
583 host_ldlibs: [
584 "-lresolv",
585 "-lrt",
586 "-ldl",
587 "-lutil",
588 ],
589
590 include_dirs: ["bionic/libc"],
591
Dimitry Ivanovd0b5c3a2016-11-25 12:23:11 -0800592 ldflags: [
593 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
594 "-Wl,--export-dynamic",
595 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700596
597 sanitize: {
598 never: false,
599 },
600}
601
602subdirs = ["libs"]