0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-09-10 06:49:40 +00:00
Files
openwrt/tools/util-linux/Makefile
Michael Pratt e3637b202d 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>
2025-08-01 08:49:03 +02:00

29 lines
746 B
Makefile

#
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=util-linux
PKG_VERSION:=2.41.1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.41
PKG_HASH:=be9ad9a276f4305ab7dd2f5225c8be1ff54352f565ff4dede9628c1aaa7dec57
PKG_CPE_ID:=cpe:/a:kernel:util-linux
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/meson.mk
MESON_HOST_ARGS += \
$(if $(findstring y,$(YEAR_2038)),,-Dallow-32bit-time=true) \
-Dauto_features=disabled \
-Dbuild-hexdump=enabled \
-Dbuild-libuuid=enabled \
-Dncurses=enabled \
-Dprogram-tests=false
$(eval $(call HostBuild))