From 825d0e918a9e41cc57097a8cb913f26550699911 Mon Sep 17 00:00:00 2001 From: Vladimir Kondratiev Date: Thu, 13 Nov 2025 10:16:48 +0200 Subject: [PATCH] Makefile: define C language standard to "gnu11" C language standard was not specified, implying default that is depending on the compiler version. Force "gnu11", same as for the Linux kernel Signed-off-by: Vladimir Kondratiev Reviewed-by: Anup Patel Link: https://lore.kernel.org/r/20251113081648.2708990-1-vladimir.kondratiev@mobileye.com Signed-off-by: Anup Patel --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index da7976d5..eb95164c 100644 --- a/Makefile +++ b/Makefile @@ -374,6 +374,7 @@ GENFLAGS += $(firmware-genflags-y) CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-stack-protector -fno-strict-aliasing -ffunction-sections -fdata-sections CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables +CFLAGS += -std=gnu11 CFLAGS += $(REPRODUCIBLE_FLAGS) # Optionally supported flags ifeq ($(CC_SUPPORT_VECTOR),y)