diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-09 20:23:49 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 23:42:53 +0000 |
commit | 300defd71205bf350a6e956451e0cc87c4e92902 (patch) | |
tree | aad0de577763a31dc88828c2ced2ec84706163a1 /meta/recipes-devtools/dosfstools/dosfstools/largefile.patch | |
parent | c4a5a8c4a6dbdcf735024aaee9e36a7a7b56cb96 (diff) | |
download | openembedded-core-contrib-300defd71205bf350a6e956451e0cc87c4e92902.tar.gz |
dosfstools: Correct cross-compile CFLAGS and fix build with musl
enable largefile support if its in DISTRO_FEATURES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/dosfstools/dosfstools/largefile.patch')
-rw-r--r-- | meta/recipes-devtools/dosfstools/dosfstools/largefile.patch | 19 |
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 @@ +defer setting largefile flags to build makery +in a cross build we can not do runtime config tests + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Inappropriate[Cross compile Specific] +Index: dosfstools-3.0.28/Makefile +=================================================================== +--- dosfstools-3.0.28.orig/Makefile ++++ dosfstools-3.0.28/Makefile +@@ -27,8 +27,7 @@ SBINDIR = $(PREFIX)/sbin + DOCDIR = $(PREFIX)/share/doc + MANDIR = $(PREFIX)/share/man + +-#OPTFLAGS = -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-OPTFLAGS = -O2 -fomit-frame-pointer -D_GNU_SOURCE $(shell getconf LFS_CFLAGS) ++OPTFLAGS = -O2 -fomit-frame-pointer + #WARNFLAGS = -Wall -pedantic -std=c99 + WARNFLAGS = -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings + DEBUGFLAGS = -g |