summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 15:56:42 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 15:56:42 +0000
commit7ff44431813e7dc17c14318a2a440ef7c9f1837c (patch)
tree425afc048f31f4951a5fc7eb6811b33e0e89b984
parentfc613ea410186f0eeacba8f7522fa3797f9d7f75 (diff)
downloadbuildroot-novena-7ff44431813e7dc17c14318a2a440ef7c9f1837c.tar.gz
buildroot-novena-7ff44431813e7dc17c14318a2a440ef7c9f1837c.zip
- make it compile if LFS is turned off and add a warning to the help-text.
LFS is _not_ turned on by this automagically _on_ _purpose_
-rw-r--r--package/nfs-utils/Config.in2
-rw-r--r--package/nfs-utils/nfs-utils.mk9
2 files changed, 10 insertions, 1 deletions
diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in
index 86045fa6b..ffe865d1f 100644
--- a/package/nfs-utils/Config.in
+++ b/package/nfs-utils/Config.in
@@ -3,6 +3,8 @@ config BR2_PACKAGE_NFS_UTILS
default n
help
The NFS Linux kernel server.
+ Warning: We do not force largefile support on here on purpose.
+ Enable it yourself if you want to access big exports!
http://sourceforge.net/projects/nfs
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 \