From de7134cf025a1769953c8af5d3adc70283c41bc2 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 16 May 2023 15:54:11 +0800 Subject: [PATCH] f2fs-tools: fix compilation with musl 1.2.4 musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. _LARGEFILE64_SOURCE has to be defined in the source, or CFLAGS can be used to pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen --- package/utils/f2fs-tools/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/utils/f2fs-tools/Makefile b/package/utils/f2fs-tools/Makefile index 99d402af6c..24c540d6de 100644 --- a/package/utils/f2fs-tools/Makefile +++ b/package/utils/f2fs-tools/Makefile @@ -98,6 +98,10 @@ define Package/libf2fs-selinux VARIANT:=selinux endef +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + CONFIGURE_ARGS += \ --disable-static \ --without-blkid \