nfs-kernel-server: fix compilation with musl 1.2.4
authorTianling Shen <[email protected]>
Wed, 17 May 2023 03:26:29 +0000 (11:26 +0800)
committerTianling Shen <[email protected]>
Wed, 17 May 2023 08:03:28 +0000 (16:03 +0800)
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]>
net/nfs-kernel-server/Makefile

index c7a3a1f57bf8c8f672b2a33352bbcbda9e8d4dca..5996a96200f3acaca86c3ba81bd9d7db8b5da941 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nfs-kernel-server
 PKG_VERSION:=2.6.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_HASH:=26d46448982252e9e2c8346d10cf13e1143e7089c866f53e25db3359f3e9493c
 
 PKG_SOURCE_URL:=@SF/nfs
@@ -100,6 +100,10 @@ TARGET_CFLAGS += -Wno-error=implicit-function-declaration \
                 -Wno-error=undef \
                 -Wno-error=missing-include-dirs
 
+ifneq ($(CONFIG_USE_MUSL),)
+  TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
+endif
+
 TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent
 
 CONFIGURE_ARGS += \