From dd170f0cbad729dba4193b2b20e3de0a7010d485 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 8 Mar 2022 12:49:49 +0100 Subject: [PATCH] Revert "package/Makefile.in: Use 64-bit time_t with glibc toolchains for > year 2038 support" This reverts commit 6e33e5908086a511294296f317f6e6f86fa84b1d. This unfortunately breaks a number of packages, as glibc errors out if 64bit time_t is used without 64bit file offsets, and some packages undefine _FILE_OFFSET_BITS leading to build breakage: # if ! defined (_FILE_OFFSET_BITS) || _FILE_OFFSET_BITS != 64 # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64" .. So revert it for 2022.02. Signed-off-by: Peter Korsgaard --- package/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Makefile.in b/package/Makefile.in index cde050ca82..508ea7c366 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -167,7 +167,7 @@ else ifeq ($(BR2_FORTIFY_SOURCE_2),y) TARGET_HARDENED += -D_FORTIFY_SOURCE=2 endif -TARGET_CPPFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 +TARGET_CPPFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_HARDENED) TARGET_CXXFLAGS = $(TARGET_CFLAGS) TARGET_FCFLAGS = $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)