Skip to content

Commit

Permalink
xfsprogs: fix compilation with musl 1.2.4
Browse files Browse the repository at this point in the history
musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so
just having _GNU_SOURCE defined is not enough anymore.

Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.

Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 authored and PolynomialDivision committed May 17, 2023
1 parent 5312113 commit eb8a330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/xfsprogs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=xfsprogs
PKG_VERSION:=5.9.0
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
Expand Down Expand Up @@ -67,7 +67,7 @@ CONFIGURE_ARGS += \
--disable-scrub \
--disable-libicu

TARGET_CFLAGS += -DHAVE_MAP_SYNC
TARGET_CFLAGS += -DHAVE_MAP_SYNC $(if (CONFIG_USE_MUSL),-D_LARGEFILE64_SOURCE)
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)

define Package/xfs-admin/install
Expand Down

0 comments on commit eb8a330

Please sign in to comment.