From: Jack Mitchell Date: Wed, 7 Sep 2016 11:20:05 +0000 (+0100) Subject: file: build with c std as c99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=144e7dbc35e420ed5b591fbdb705bcc73d3634e1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git file: build with c std as c99 when using a toolchain not shipped by OE core such as linaro we can't be sure what the std will be set to. Set to compile as c99 which is the lowest version supported. (From OE-Core rev: e544ca08a2bcb5a8d98671e63f6c8b7b21c562ea) Signed-off-by: Jack Mitchell Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/file/file_5.28.bb b/meta/recipes-devtools/file/file_5.28.bb index 516c8c55be4..e64a89c804b 100644 --- a/meta/recipes-devtools/file/file_5.28.bb +++ b/meta/recipes-devtools/file/file_5.28.bb @@ -27,6 +27,8 @@ inherit autotools EXTRA_OEMAKE_append_class-target = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" +CFLAGS_append = " -std=c99" + FILES_${PN} += "${datadir}/misc/*.mgc" do_install_append_class-native() {