[PATCH] mtd-utils: add option to not force largefile support
Peter Korsgaard
jacmet at sunsite.dk
Wed Feb 3 04:18:46 EST 2010
Not all systems have largefile support (E.G. uClibc depending on config),
so unconditionally enforcing largefile breaks the build.
Work around it by adding a WITHOUT_LARGEFILE flag, similar to the existing
WITHOUT_XATTR.
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
common.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/common.mk b/common.mk
index 5e92b07..d704b44 100644
--- a/common.mk
+++ b/common.mk
@@ -12,7 +12,10 @@ WFLAGS := -Wall \
$(call cc-option,-Wwrite-strings) \
$(call cc-option,-Wno-sign-compare)
CFLAGS += $(WFLAGS)
-CPPFLAGS += -D_FILE_OFFSET_BITS=64
+
+ifneq ($(WITHOUT_LARGEFILE), 1)
+ CPPFLAGS += -D_FILE_OFFSET_BITS=64
+endif
DESTDIR ?= /usr/local
PREFIX=/usr
--
1.6.5
More information about the linux-mtd
mailing list