diff options
| author | Vladimir Kondratiev <vladimir.kondratiev@mobileye.com> | 2025-11-13 10:16:48 +0200 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2025-12-01 11:52:55 +0530 |
| commit | 825d0e918a9e41cc57097a8cb913f26550699911 (patch) | |
| tree | aa1ba362ee034435b03038b936f9b28c0bc6773f | |
| parent | d28e2fa9cc7a43d60beb0d9b48e25726c9311d51 (diff) | |
| download | opensbi-825d0e918a9e41cc57097a8cb913f26550699911.tar.gz opensbi-825d0e918a9e41cc57097a8cb913f26550699911.zip | |
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 <vladimir.kondratiev@mobileye.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20251113081648.2708990-1-vladimir.kondratiev@mobileye.com
Signed-off-by: Anup Patel <anup@brainfault.org>
| -rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |
