summaryrefslogtreecommitdiff
path: root/libc/debug/Makefile
diff options
context:
space:
mode:
authorjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-10-16 10:45:29 +0000
committerjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-10-16 10:45:29 +0000
commitaddc040a0abc7ec65344706c75bc07f7998942bb (patch)
tree988f87e2670a8b4fb58fa93df19c79b47c7bf565 /libc/debug/Makefile
parent2578d0508a978254dda6fd63a066e5383ed4a92e (diff)
downloadeglibc2-addc040a0abc7ec65344706c75bc07f7998942bb.tar.gz
Implement the OPTION_EGLIBC_CXX_TESTS option group.
* option-groups.def (OPTION_EGLIBC_CXX_TESTS): New entry. * option-groups.defaults (OPTION_EGLIBC_CXX_TESTS): Initialize. * debug/Makefile (tests): Put tst-chk4, tst-chk5, tst-chk6, tst-lfschk4, tst-lfschk5, and tst-lfschk6 in the group. * dlfcn/Makefile: Include option-groups.mak. (tests): Put bug-atexit3 in the group. * nptl/Makefile (tests): Put tst-cancel24 in the group. Implement the OPTION_POSIX_WIDE_CHAR_DEVICE_IO option group. * option-groups.def (OPTION_POSIX_WIDE_CHAR_DEVICE_IO): New entry. * option-groups.defaults (OPTION_POSIX_WIDE_CHAR_DEVICE_IO): Initialize. * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c): Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate. * argp/argp-help.c (__argp_failure): Support the wide character case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined. * argp/argp-fmtstream.c (__argp_fmtstream_update): Same. * debug/Makefile (routines): Put wprintf_chk, fwprintf_chk, vwprintf_chk, vfwprintf_chk, fgetws_chk, and fgetws_u_chk in the group. * libio/Makefile: Include ../option-groups.mak. (routines): Put in the group: fputwc, fputwc_u, getwc, getwc_u, getwchar, getwchar_u, iofgetws, iofgetws_u, iofputws, iofputws_u, iogetwline, ioungetwc, putwc, putwc_u, putwchar, putwchar_u, fwprintf, swprintf, vwprintf, wprintf, wscanf, fwscanf, vwscanf, and fwide. (tests): Put in the group: bug-ftell, bug-rewind, bug-rewind2, bug-ungetwc1, bug-ungetwc2, bug-wfflush, bug-wmemstream1, tst-fgetws, tst-fopenloc, tst-fopenloc2, tst-setvbuf1, tst-ungetwc1, tst-ungetwc2, tst-widetext, tst_getwc, tst_putwc, tst_wprintf, tst_wprintf2, tst_wscanf, and test-freopen. * localedata/Makefile (tests): Put tst-wctype in the group. * misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate. (tests): Put tst-error1 in the group. * misc/err.c (convert_and_print): Define only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined. (vwarnx, vwarn): Support the wide character case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined. * misc/error.c (error_tail): Same. * posix/Makefile (CFLAGS-bug-regex1.c): Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate. * posix/bug-regex1.c (main): Call fwide only if the group is enabled. * stdio-common/Makefile: (routines): Put vfwprintf and vfwscanf in the group. (tests): Put tst-perror and bug19a in the group. (CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate. * stdio-common/fxprintf.c (__fxprintf): Support the wide character case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined. * stdio-common/tst-perror.c (main): Test wide character case only if group is enabled. * stdio-common/tst-popen.c (main): Check the stream's orientation only if the group is enabled. * time/Makefile (tests): Put tst_wcsftime in the group. * wcsmbs/Makefile (routines): Put isoc99_wscanf, isoc99_vwscanf, isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf, and isoc99_vswscanf in the group. git-svn-id: svn://svn.eglibc.org/trunk@3830 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/debug/Makefile')
-rw-r--r--libc/debug/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/debug/Makefile b/libc/debug/Makefile
index fb52f50ed..9c17d800e 100644
--- a/libc/debug/Makefile
+++ b/libc/debug/Makefile
@@ -38,8 +38,7 @@ routines = noophooks \
wctomb_chk wcscpy_chk wmemcpy_chk wmemmove_chk wmempcpy_chk \
wcpcpy_chk wcsncpy_chk wcscat_chk wcsncat_chk wmemset_chk \
wcpncpy_chk \
- swprintf_chk vswprintf_chk wprintf_chk fwprintf_chk \
- vwprintf_chk vfwprintf_chk fgetws_chk fgetws_u_chk \
+ swprintf_chk vswprintf_chk \
confstr_chk getgroups_chk ttyname_r_chk \
gethostname_chk getdomainname_chk wcrtomb_chk mbsnrtowcs_chk \
wcsnrtombs_chk mbsrtowcs_chk wcsrtombs_chk mbstowcs_chk \
@@ -48,6 +47,10 @@ routines = noophooks \
$(static-only-routines)
routines-$(OPTION_EGLIBC_GETLOGIN) += getlogin_r_chk
routines-$(OPTION_EGLIBC_BACKTRACE) += backtrace backtracesyms backtracesymsfd
+routines-$(OPTION_POSIX_WIDE_CHAR_DEVICE_IO) \
+ += wprintf_chk fwprintf_chk \
+ vwprintf_chk vfwprintf_chk fgetws_chk fgetws_u_chk
+
static-only-routines := warning-nop stack_chk_fail_local
CFLAGS-backtrace.c = -fno-omit-frame-pointer
@@ -112,9 +115,10 @@ LDFLAGS-tst-lfschk5 = -lstdc++
LDFLAGS-tst-lfschk6 = -lstdc++
tests = tst-chk1 tst-chk2 tst-chk3 \
- tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk \
- tst-chk4 tst-chk5 tst-chk6 tst-lfschk4 tst-lfschk5 tst-lfschk6
+ tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk
tests-$(OPTION_EGLIBC_BACKTRACE) += backtrace-tst
+tests-$(OPTION_EGLIBC_CXX_TESTS) \
+ += tst-chk4 tst-chk5 tst-chk6 tst-lfschk4 tst-lfschk5 tst-lfschk6
extra-libs = libSegFault libpcprofile
extra-libs-others = $(extra-libs)