diff --git a/Makefile b/Makefile index 17fa1050..2f1ad996 100644 --- a/Makefile +++ b/Makefile @@ -342,7 +342,8 @@ endif CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 -ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),) +# Fixes for gcc version 12 and 13. +ifneq (,$(filter 12.% 13.%,$(shell $(CC) -dumpversion 2>/dev/null))) CFLAGS += --param=min-pagesize=0 endif