summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dosfstools/dosfstools/largefile.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-09 20:23:49 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:30 +0000
commit8dd1aa8b70c4200d1c9774715fbc7860114dd8a8 (patch)
treece590731c4789b5957ae47e3c1151cc30eb135e9 /meta/recipes-devtools/dosfstools/dosfstools/largefile.patch
parent21550d10bf27ed9dad63bbc23412bd3b7f0e9201 (diff)
downloadpoky-8dd1aa8b70c4200d1c9774715fbc7860114dd8a8.tar.gz
dosfstools: Correct cross-compile CFLAGS and fix build with musl
enable largefile support if its in DISTRO_FEATURES (From OE-Core rev: 300defd71205bf350a6e956451e0cc87c4e92902) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dosfstools/dosfstools/largefile.patch')
-rw-r--r--meta/recipes-devtools/dosfstools/dosfstools/largefile.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dosfstools/dosfstools/largefile.patch b/meta/recipes-devtools/dosfstools/dosfstools/largefile.patch
new file mode 100644
index 0000000000..7f7d8359df
--- /dev/null
+++ b/meta/recipes-devtools/dosfstools/dosfstools/largefile.patch
@@ -0,0 +1,19 @@
1defer setting largefile flags to build makery
2in a cross build we can not do runtime config tests
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5Upstream-Status: Inappropriate[Cross compile Specific]
6Index: dosfstools-3.0.28/Makefile
7===================================================================
8--- dosfstools-3.0.28.orig/Makefile
9+++ dosfstools-3.0.28/Makefile
10@@ -27,8 +27,7 @@ SBINDIR = $(PREFIX)/sbin
11 DOCDIR = $(PREFIX)/share/doc
12 MANDIR = $(PREFIX)/share/man
13
14-#OPTFLAGS = -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
15-OPTFLAGS = -O2 -fomit-frame-pointer -D_GNU_SOURCE $(shell getconf LFS_CFLAGS)
16+OPTFLAGS = -O2 -fomit-frame-pointer
17 #WARNFLAGS = -Wall -pedantic -std=c99
18 WARNFLAGS = -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings
19 DEBUGFLAGS = -g