nfs-kernel-server: 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. Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
9f32a9b663
commit
79e507cb34
1 changed files with 5 additions and 1 deletions
|
@ -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 += \
|
||||
|
|
Loading…
Reference in a new issue