diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2025-08-18 00:58:16 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-08-22 05:59:55 -0700 |
commit | 93c7e114572fa7b607fe1165ce70c7f2fdf26265 (patch) | |
tree | 32148aa8677ed51ffaa43a3c82462b86fb4ad0ba | |
parent | fb9746b787d6914272fee8f43f39017b4fba532d (diff) | |
download | poky-93c7e114572fa7b607fe1165ce70c7f2fdf26265.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: 55c144bd17665f70cd15e36f3405f502a962f039)
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.21.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash_5.2.21.bb b/meta/recipes-extended/bash/bash_5.2.21.bb index 42ab02c440..7652e7d87a 100644 --- a/meta/recipes-extended/bash/bash_5.2.21.bb +++ b/meta/recipes-extended/bash/bash_5.2.21.bb | |||
@@ -23,5 +23,8 @@ DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb | |||
23 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 23 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |
24 | 24 | ||
25 | CFLAGS += "-std=gnu17" | 25 | CFLAGS += "-std=gnu17" |
26 | # mkbuiltins.c is built with native toolchain and needs gnu17 as well: | ||
27 | # http://errors.yoctoproject.org/Errors/Details/853016/ | ||
28 | BUILD_CFLAGS += "-std=gnu17" | ||
26 | 29 | ||
27 | BBCLASSEXTEND = "nativesdk" | 30 | BBCLASSEXTEND = "nativesdk" |