diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2025-08-18 16:39:23 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-08-26 06:33:14 -0700 |
commit | 9fc83a33432397caba2951a1485f33711e3c171c (patch) | |
tree | b6fb26f48de509c1141161ba2fbb88df21ab7b03 | |
parent | 49a42f23d111db5a8281c630713b251986bd532e (diff) | |
download | poky-9fc83a33432397caba2951a1485f33711e3c171c.tar.gz |
bash: use -std=gnu17 also for native CFLAGS
* fixes builds on host with gcc-15:
http://errors.yoctoproject.org/Errors/Details/853016/
../../bash-5.2.37/builtins/mkbuiltins.c:268:29: error: too many arguments to function ‘xmalloc’; expected 0, have 1
268 | error_directory = xmalloc (2 + strlen (argv[arg_index]));
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(From OE-Core rev: 0c09f4a449fc03e6f5dfb6e5961c0a0471a7816d)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-extended/bash/bash_5.2.37.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash_5.2.37.bb b/meta/recipes-extended/bash/bash_5.2.37.bb index 9f02ea17b5..2c0645cbd9 100644 --- a/meta/recipes-extended/bash/bash_5.2.37.bb +++ b/meta/recipes-extended/bash/bash_5.2.37.bb | |||
@@ -21,5 +21,8 @@ DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb | |||
21 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 21 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |
22 | 22 | ||
23 | CFLAGS += "-std=gnu17" | 23 | CFLAGS += "-std=gnu17" |
24 | # mkbuiltins.c is built with native toolchain and needs gnu17 as well: | ||
25 | # http://errors.yoctoproject.org/Errors/Details/853016/ | ||
26 | BUILD_CFLAGS += "-std=gnu17" | ||
24 | 27 | ||
25 | BBCLASSEXTEND = "nativesdk" | 28 | BBCLASSEXTEND = "nativesdk" |