Skip to contentSkip to conversation

file: build with c std as c99

PATCH New Jack Mitchell 1 participant 1 message Sep 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 file: build with c std as c99

From: Jack Mitchell <[email protected]>

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.

---
 meta/recipes-devtools/file/file_5.28.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/file/file_5.28.bb +2 -0
index 516c8c5..e64a89c 100644
@@ -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() {
Signature · 1 line
2.9.3