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 <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-05-16 15:54:11 +08:00
parent 83ec8f3099
commit de7134cf02
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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 \