]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Config: Globally permit using 32 bit time_t
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 16:47:45 +0000 (16:47 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Feb 2022 12:13:43 +0000 (12:13 +0000)
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 <michael.tremer@ipfire.org>
lfs/Config
lfs/coreutils
lfs/gzip

index 3e4de3b3fd48eaddd07bc76be60b0aaca78ceadd..1209c1603a876084cc5005d34531c2f6918044b4 100644 (file)
@@ -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 \
index b64ac7a065730ca62cd455fbe1cb4a2fed18ea09..d272fd06ad51b78a82c56e007cb4332673ecc570 100644 (file)
@@ -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
 ###############################################################################
index 4f8925cd29fe1e2945a43b3542cc28a50e80d30d..4f0853de07fbc441132358bd75fc603192711d1a 100644 (file)
--- 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
 ###############################################################################