]> code.ossystems Code Review - openembedded-core.git/commitdiff
file: build with c std as c99
authorJack Mitchell <jack@embed.me.uk>
Wed, 7 Sep 2016 11:20:05 +0000 (12:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2016 23:31:58 +0000 (00:31 +0100)
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.

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/file/file_5.28.bb

index 516c8c55be40c733c4b1c73602f9a0eff05bb1a0..e64a89c804b67d503aa24c4940acac8ed9b23b83 100644 (file)
@@ -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() {