From 4809a5538015f82fdbe5aec5d6fdaab5fefa07ba Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 9 Aug 2022 07:44:49 -0700 Subject: [PATCH 1/2] Use the same _TIME_BITS everywhere * largefile.m4: Include Gnulib's largefile.m4 and year2038.m4. --- config/ChangeLog | 5 +++++ config/largefile.m4 | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/config/ChangeLog b/config/ChangeLog index 3385292b3dc..f19422f27e7 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2022-08-09 Paul Eggert + + Use the same _TIME_BITS everywhere + * largefile.m4: Include Gnulib's largefile.m4 and year2038.m4. + 2022-07-08 Nick Clifton * 2.39 branch created. diff --git a/config/largefile.m4 b/config/largefile.m4 index 937596334cd..1521e7c59bd 100644 --- a/config/largefile.m4 +++ b/config/largefile.m4 @@ -3,6 +3,12 @@ # bfd's configure script so that all the directories agree on the size # of structures used to describe files. +# Use the same version of AC_SYS_LARGEFILE that Gnulib uses, +# as it may set _FILE_OFFSET_BITS and/or _TIME_BITS and this +# needs to be consistent across binutils. +m4_include([../gnulib/import/m4/largefile.m4]) +m4_include([../gnulib/import/m4/year2038.m4]) + AC_DEFUN([ACX_LARGEFILE],[dnl # The tests for host and target for $enable_largefile require -- 2.37.1