]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ghostscript: Pin to C17 std
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Mar 2025 16:33:35 +0000 (09:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Mar 2025 18:45:14 +0000 (18:45 +0000)
commit49657089ef215824f8f79a81deb7baf4f27d0030
tree998d8e809d0bce7752e0a7c2f291f2ffdfdb6c2d
parentf30f314d03148fc4c0ebeb0e189ac42a0d31722c
ghostscript: Pin to C17 std

The code defines a custom 'bool' type (as an 'int'), which is incompatible
with C23 in which bool is a keyword, and trying to use <stdbool.h> fails
because 'int' and 'bool' are used interchangeably in the code.

Add the flag to CC variable, since CFLAGS is used by both c and c++ compilers
and clang++ is less forgiving when C compiler only option is used on its
cmdline so it complains about -std=gnu17 and bails out.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb