]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools: util-linux: allow building with 32-bit time 19617/head
authorMichael Pratt <mcpratt@pm.me>
Fri, 1 Aug 2025 04:20:48 +0000 (00:20 -0400)
committerNick Hainke <vincent@systemli.org>
Fri, 1 Aug 2025 06:49:03 +0000 (08:49 +0200)
commite3637b202da7410db117d7ceafa607059f2de9f3
tree4e82efb809a1493f6845a3394f4f0cb653848e1a
parent40ad990ebf96e979ffff528de72823f8e6583a4c
tools: util-linux: allow building with 32-bit time

Similar to several GNU tools, util-linux when built using meson
is configured by default to error when 64-bit time is not supported.

To solve this in the same way as standard configure scripts,
check for 64-bit time support ahead of time,
and allow 32-bit time when not supported.

In the future, the YEAR_2038 variable
can be used as a build prerequisite
instead of being used for configuration.

Ref: 39e8ef33bf ("build: add test for 64-bit time support")
Fixes: e15d5cf752 ("tools/util-linux: build with meson")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19617
Signed-off-by: Nick Hainke <vincent@systemli.org>
tools/util-linux/Makefile