diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-03-24 09:33:35 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-27 11:19:04 +0000 |
| commit | a421ad3816c072293062c19df15c3e49f53e74d2 (patch) | |
| tree | 5fc66ba2ec4b507ea4f67337295000a73fff03ba | |
| parent | 7d8c805f8f6ff1451412af8e9886af9466a37630 (diff) | |
| download | poky-a421ad3816c072293062c19df15c3e49f53e74d2.tar.gz | |
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.
(From OE-Core rev: 49657089ef215824f8f79a81deb7baf4f27d0030)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb index 1d05945c30..e937f04cb3 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb | |||
| @@ -47,6 +47,8 @@ EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0" | |||
| 47 | EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | 47 | EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" |
| 48 | EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | 48 | EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" |
| 49 | 49 | ||
| 50 | CC += "-std=gnu17" | ||
| 51 | |||
| 50 | # Uses autoconf but not automake, can't do out-of-tree | 52 | # Uses autoconf but not automake, can't do out-of-tree |
| 51 | inherit autotools-brokensep pkgconfig | 53 | inherit autotools-brokensep pkgconfig |
| 52 | 54 | ||
