From 6a8d6ddc549638bed6dbf1d91df146b8a69ca589 Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Mon, 31 Aug 2020 08:13:09 -0700 Subject: babl-native: fix build issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../babl-0.1.74/babl/babl-fish-reference.c:1064:7: error: ‘for’ loop initial declarations are only allowed in C99 mode | for (int i = 0; i < n; i++) | ^ | ../babl-0.1.74/babl/babl-fish-reference.c:1064:7: note: use option -std=c99 or -std=gnu99 to compile your code Fails on CentOS7 with Arch64 Signed-off-by: Armin Kuster --- meta-gnome/recipes-gimp/babl/babl_0.1.74.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-gnome') diff --git a/meta-gnome/recipes-gimp/babl/babl_0.1.74.bb b/meta-gnome/recipes-gimp/babl/babl_0.1.74.bb index c470987b4f..9b405be0b3 100644 --- a/meta-gnome/recipes-gimp/babl/babl_0.1.74.bb +++ b/meta-gnome/recipes-gimp/babl/babl_0.1.74.bb @@ -10,6 +10,8 @@ inherit setuptools3 gnomebase gobject-introspection DEPENDS += "lcms" +CFLAGS_append_class-native = " -std=gnu99" + # https://bugs.llvm.org/show_bug.cgi?id=45555 CFLAGS_append_toolchain-clang_mipsarch = " -ffp-exception-behavior=ignore " CFLAGS_append_toolchain-clang_riscv64 = " -ffp-exception-behavior=ignore " -- cgit 1.2.3-korg