mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-12-07 08:51:37 +00:00
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>
This commit is contained in:
committed by
Anup Patel
parent
d28e2fa9cc
commit
825d0e918a
1
Makefile
1
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)
|
||||
|
||||
Reference in New Issue
Block a user