[oe-commits] [openembedded-core] 02/21: file: specify c std as c99 or greater required

git at git.openembedded.org git at git.openembedded.org
Tue Sep 6 14:38:27 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 043b4cd61986cc26c52aa5c1a411868075ac1b38
Author: Jack Mitchell <jack at embed.me.uk>
AuthorDate: Tue Sep 6 14:25:20 2016 +0100

    file: specify c std as c99 or greater required
    
    when using a toolchain not shipped by OE core such as linaro we
    can't be sure what the std will be set to. Ensure file is compiled
    as c99 or greater as required.
    
    Signed-off-by: Jack Mitchell <jack at embed.me.uk>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/file/file_5.28.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/file/file_5.28.bb b/meta/recipes-devtools/file/file_5.28.bb
index 516c8c5..94848db 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=gnu11"
+
 FILES_${PN} += "${datadir}/misc/*.mgc"
 
 do_install_append_class-native() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list