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 DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" CFLAGS += "-std=gnu17" +# mkbuiltins.c is built with native toolchain and needs gnu17 as well: +# http://errors.yoctoproject.org/Errors/Details/853016/ +BUILD_CFLAGS += "-std=gnu17" BBCLASSEXTEND = "nativesdk"