summaryrefslogtreecommitdiff
path: root/libc/io
diff options
context:
space:
mode:
authormaxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2009-04-20 18:04:40 +0000
committermaxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2009-04-20 18:04:40 +0000
commit6bf6ab56f4f80faa5f67b1d66b3fa962bf6b2391 (patch)
treec489369687b83717bb4a2aa4d9bffdf5bbe6eaac /libc/io
parent3a94d6c7d70dbf42a737b420e52a28da9cc8ce71 (diff)
* option-groups.def (OPTION_EGLIBC_FCVT, OPTION_EGLIBC_FMTMSG):
Define new option groups. (OPTION_EGLIBC_FTRAVERSE): Define new option group. * option-groups.defaults: Set defaults for new option groups. * misc/Makefile: Handle OPTION_EGLIBC_FCVT option group. * stdlib/Makefile: Handle OPTION_EGLIBC_FMTMSG option group. * io/Makefile: Handle OPTION_EGLIBC_FTRAVERSE option group. git-svn-id: svn://svn.eglibc.org/trunk@8330 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/io')
-rw-r--r--libc/io/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/libc/io/Makefile b/libc/io/Makefile
index 8edfee01d..c8a317922 100644
--- a/libc/io/Makefile
+++ b/libc/io/Makefile
@@ -50,12 +50,13 @@ routines := \
ttyname ttyname_r isatty \
link linkat symlink symlinkat readlink readlinkat \
unlink unlinkat rmdir \
- ftw ftw64 fts poll ppoll \
+ poll ppoll \
posix_fadvise posix_fadvise64 \
posix_fallocate posix_fallocate64 \
sendfile sendfile64 \
utimensat futimens
routines-$(OPTION_EGLIBC_BSD) += lchmod
+routines-$(OPTION_EGLIBC_FTRAVERSE) += ftw ftw64 fts
aux := have_o_cloexec
@@ -66,14 +67,16 @@ static-only-routines = stat fstat lstat stat64 fstat64 lstat64 \
fstatat fstatat64 mknod mknodat
others := pwd
-test-srcs := ftwtest
+test-srcs-$(OPTION_EGLIBC_FTRAVERSE) := ftwtest
tests := test-utime test-stat test-stat2 test-lfs tst-getcwd \
- tst-fcntl bug-ftw1 bug-ftw2 bug-ftw3 bug-ftw4 tst-statvfs \
+ tst-fcntl tst-statvfs \
tst-openat tst-unlinkat tst-fstatat tst-futimesat \
tst-renameat tst-fchownat tst-fchmodat tst-faccessat \
tst-symlinkat tst-linkat tst-readlinkat tst-mkdirat \
- tst-mknodat tst-mkfifoat tst-ttyname_r bug-ftw5 \
+ tst-mknodat tst-mkfifoat tst-ttyname_r \
tst-posix_fallocate
+tests-$(OPTION_EGLIBC_FTRAVERSE) += bug-ftw1 bug-ftw2 bug-ftw3 bug-ftw4 \
+ bug-ftw5
distribute := ftwtest-sh
@@ -102,7 +105,9 @@ test-stat2-ARGS = Makefile . $(objpfx)test-stat2
tst-statvfs-ARGS = $(objpfx)tst-statvfs tst-statvfs.c /tmp
# eglibc: ifeq ($(cross-compiling),no)
+ifeq (y,$(OPTION_EGLIBC_FTRAVERSE))
tests: $(objpfx)ftwtest.out
+endif
ifeq ($(cross-compiling),yes)
# EGLIBC's cross-testing support does not require the build and host