diff options
author | Andreas Schwab <schwab@suse.de> | 2023-02-28 10:37:18 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-03-12 15:25:59 -0300 |
commit | 4d4ba8bae4bac5e0fd266c22517a3f16a1006bbe (patch) | |
tree | 613859496f5ced206a9af32a4da82670bf667b43 /support/Makefile | |
parent | 8e99cc76a26a88589aaa4e54c1ae48fa27be26b7 (diff) | |
download | glibc-4d4ba8bae4bac5e0fd266c22517a3f16a1006bbe.tar.gz glibc-4d4ba8bae4bac5e0fd266c22517a3f16a1006bbe.tar.xz glibc-4d4ba8bae4bac5e0fd266c22517a3f16a1006bbe.zip |
support: use 64-bit time_t (bug 30111)
Ensure to use 64-bit time_t in the test infrastructure. (cherry picked from commit 3bfdc4e2bceb601b90c81a9baa73c1904db58b2f)
Diffstat (limited to 'support/Makefile')
-rw-r--r-- | support/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile index 2b661a7eb8..75b96c35f5 100644 --- a/support/Makefile +++ b/support/Makefile @@ -239,6 +239,24 @@ CFLAGS-support_paths.c = \ CFLAGS-timespec.c += -fexcess-precision=standard CFLAGS-timespec-time64.c += -fexcess-precision=standard +# Ensure that general support files use 64-bit time_t +CFLAGS-delayed_exit.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-shell-container.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_can_chroot.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_copy_file.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_copy_file_range.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_descriptor_supports_holes.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_descriptors.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_process_state.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_stat_nanoseconds.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_subprocess.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-support_test_main.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-test-container.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +CFLAGS-xmkdirp.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +# This is required to get an mkstemp which can create large files on some +# 32-bit platforms. +CFLAGS-temp_file.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 + ifeq (,$(CXX)) LINKS_DSO_PROGRAM = links-dso-program-c else |