diff options
author | Andreas Schwab <schwab@suse.de> | 2023-02-28 10:37:18 -0300 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2023-03-02 13:01:32 +0100 |
commit | 3bfdc4e2bceb601b90c81a9baa73c1904db58b2f (patch) | |
tree | 74ddef81f5852da0e0365fc81845577fe0163f82 /support/Makefile | |
parent | db9c1007494fa2fda1b6e076dc24af65267f01c0 (diff) | |
download | glibc-3bfdc4e2bceb601b90c81a9baa73c1904db58b2f.zip glibc-3bfdc4e2bceb601b90c81a9baa73c1904db58b2f.tar.gz glibc-3bfdc4e2bceb601b90c81a9baa73c1904db58b2f.tar.bz2 |
support: use 64-bit time_t (bug 30111)
Ensure to use 64-bit time_t in the test infrastructure.
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 b29b7eb..a304c5c 100644 --- a/support/Makefile +++ b/support/Makefile @@ -238,6 +238,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 |