summaryrefslogtreecommitdiffstats
path: root/package/mtd/mtd-utils-largefile.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-02-03 14:18:23 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-02-03 14:23:45 +0100
commit9277cb760a4cc6e62d0cd23fa938dd953e875a13 (patch)
tree9f8ef648621f2967d187bf403327c0adfb86fe0a /package/mtd/mtd-utils-largefile.patch
parentfbf84d42b6954c2295171c4c0524a55643122c66 (diff)
downloadbuildroot-novena-9277cb760a4cc6e62d0cd23fa938dd953e875a13.tar.gz
buildroot-novena-9277cb760a4cc6e62d0cd23fa938dd953e875a13.zip
mtd-utils: bump version, get rid of obsolete git version
ubimirror is gone, ubiformat/ubinize/ubirename/ubirsvol are new. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mtd/mtd-utils-largefile.patch')
-rw-r--r--package/mtd/mtd-utils-largefile.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/mtd/mtd-utils-largefile.patch b/package/mtd/mtd-utils-largefile.patch
new file mode 100644
index 000000000..91ef7b43e
--- /dev/null
+++ b/package/mtd/mtd-utils-largefile.patch
@@ -0,0 +1,35 @@
+From 90be45c82fa8c54ceb202619024142ed3db11c14 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Date: Wed, 3 Feb 2010 09:23:19 +0100
+Subject: [PATCH] mtd-utils: add option to not force largefile support
+
+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@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
+