From daec9c508a0f5dbf97377c07d43ef1d8c665dda1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 2 Feb 2022 18:01:51 +0000 Subject: [PATCH] Config: Globally permit using 32 bit time_t This is required because some packages do not recommend building with time_t when it is 32 bit (Y2038 problem). Signed-off-by: Michael Tremer --- lfs/Config | 5 +++++ lfs/coreutils | 5 ----- lfs/gzip | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lfs/Config b/lfs/Config index 3e4de3b3fd..1209c1603a 100644 --- a/lfs/Config +++ b/lfs/Config @@ -84,6 +84,11 @@ else PREFIX = /usr endif +# Permit building with 32 bit time_t on 32 bit architectures +ifeq "$(IS_32BIT)" "1" + export TIME_T_32_BIT_OK = yes +endif + TAR_OPTIONS = \ --format=pax \ --acls \ diff --git a/lfs/coreutils b/lfs/coreutils index b64ac7a065..d272fd06ad 100644 --- a/lfs/coreutils +++ b/lfs/coreutils @@ -50,11 +50,6 @@ CONFIGURE_OPTIONS += \ CFLAGS += -fno-strict-aliasing -# Build with 32 bit time_t on 32 bit architectures -ifeq "$(IS_32BIT)" "1" - export TIME_T_32_BIT_OK=yes -endif - ############################################################################### # Top-level Rules ############################################################################### diff --git a/lfs/gzip b/lfs/gzip index 4f8925cd29..4f0853de07 100644 --- a/lfs/gzip +++ b/lfs/gzip @@ -41,11 +41,6 @@ else EXTRA_CONFIG = --prefix=$(TOOLS_DIR) endif -# Build with 32 bit time_t on 32 bit architectures -ifeq "$(IS_32BIT)" "1" - export TIME_T_32_BIT_OK=yes -endif - ############################################################################### # Top-level Rules ############################################################################### -- 2.39.5