mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/bash: fix build with gcc 15
Commit6d09b25d08(package/bash: fix build with host GCC 15) did apply a workaround for when the host gcc is gcc-15 (or later), but missed the fact that the target compiler also exhibits build issues. For the same reasons as explained in6d09b25d08, don't try and fix those issues, but just paper over the problem by using an older C standard. Fixes: https://autobuild.buildroot.net/results/1ee74d546182695d3411358f028fcce8ccbb74c3/ Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Adam Duskett <adam.duskett@amarulasolutions.com> Cc: Florian Larysch <fl@n621.de> Cc: Julien Olivain <ju.o@free.fr> Reviewed-by: Florian Larysch <fl@n621.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
1c61d9c12b
commit
00fa600303
@@ -26,6 +26,11 @@ BASH_CONF_ENV = \
|
||||
bash_cv_func_sigsetjmp=present \
|
||||
bash_cv_printf_a_format=yes
|
||||
|
||||
# Can be dropped when bash is bumped to 5.3 or newer.
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
|
||||
BASH_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_HOST_GCC_AT_LEAST_15),y)
|
||||
BASH_CONF_ENV += CFLAGS_FOR_BUILD="$(HOST_CFLAGS) -std=gnu17"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user