summaryrefslogtreecommitdiff
path: root/package/nfs-utils/nfs-utils.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/nfs-utils/nfs-utils.mk')
-rw-r--r--package/nfs-utils/nfs-utils.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index 1eba56fab..ddfdca02a 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -11,6 +11,13 @@ NFS_UTILS_DIR:=$(BUILD_DIR)/nfs-utils-$(NFS_UTILS_VER)
NFS_UTILS_BINARY:=utils/nfsd/nfsd
NFS_UTILS_TARGET_BINARY:=usr/sbin/rpc.nfsd
+BR2_NFS_UTILS_CFLAGS=
+ifeq ($(BR2_LARGEFILE),)
+BR2_NFS_UTILS_CFLAGS+=-U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS
+endif
+BR2_NFS_UTILS_CFLAGS+=-DUTS_RELEASE='\"$(LINUX_HEADERS_VERSION)\"'
+
+
$(DL_DIR)/$(NFS_UTILS_SOURCE):
$(WGET) -P $(DL_DIR) $(NFS_UTILS_SITE)/$(NFS_UTILS_SOURCE)
@@ -25,7 +32,7 @@ $(NFS_UTILS_DIR)/.unpacked: $(DL_DIR)/$(NFS_UTILS_SOURCE)
$(NFS_UTILS_DIR)/.configured: $(NFS_UTILS_DIR)/.unpacked
(cd $(NFS_UTILS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) $(BR2_NFS_UTILS_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
knfsd_cv_bsd_signals=no \
./configure \