From 64acf8343569ebc221e6d209d4daf92e37af3f6a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 19 Sep 2026 09:40:17 +0200 Subject: [PATCH] build: test for 64-bit time_t only when a host build needs it host-build.mk runs the YEAR_2038 compiler test while it parses, so every package with a host build runs it on every make call, also for a target build or a build that has nothing to do. Add the result to HOST_CONFIGURE_ARGS without expanding it, so the test runs only when the host build is configured. Signed-off-by: John Crispin --- include/host-build.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/host-build.mk b/include/host-build.mk index 0eecf7f394f..9673d5c03c9 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -97,9 +97,7 @@ HOST_CONFIGURE_ARGS = \ --localstatedir=$(HOST_BUILD_PREFIX)/var \ --sbindir=$(HOST_BUILD_PREFIX)/bin -ifneq ($(YEAR_2038),y) - HOST_CONFIGURE_ARGS += --disable-year2038 -endif +HOST_CONFIGURE_ARGS += $(if $(filter y,$(YEAR_2038)),,--disable-year2038) HOST_MAKE_VARS = \ CFLAGS="$(HOST_CFLAGS)" \