From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from owm.eumx.net (eumx.net [91.82.101.43]) by mail.openembedded.org (Postfix) with ESMTP id 9555477699 for ; Wed, 7 Sep 2016 11:19:53 +0000 (UTC) From: Jack Mitchell To: openembedded-core@lists.openembedded.org Date: Wed, 7 Sep 2016 12:20:05 +0100 Message-Id: <20160907112005.10247-1-ml@embed.me.uk> X-Mailer: git-send-email 2.9.3 Cc: Jack Mitchell Subject: [PATCHv2] file: build with c std as c99 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 11:19:55 -0000 From: Jack Mitchell 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 --- 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..e64a89c 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() { -- 2.9.3