From 1816d752af4253df7f917fd9e62c7fdcc8f830a1 Mon Sep 17 00:00:00 2001 From: cuiziwei Date: Fri, 29 Mar 2024 15:51:13 +0800 Subject: [PATCH] arch/x86_64:Fix build cxx warning. Signed-off-by: cuiziwei --- arch/x86_64/src/common/Toolchain.defs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86_64/src/common/Toolchain.defs b/arch/x86_64/src/common/Toolchain.defs index bd6a3e57787..b8e19bbf484 100644 --- a/arch/x86_64/src/common/Toolchain.defs +++ b/arch/x86_64/src/common/Toolchain.defs @@ -32,6 +32,9 @@ ifeq ($(CONFIG_FRAME_POINTER),y) ARCHOPTIMIZATION += -fno-omit-frame-pointer -fno-optimize-sibling-calls endif +ARCHCFLAGS += -fno-common -Wno-attributes +ARCHCXXFLAGS += -fno-common -Wno-attributes -nostdinc++ + ARCHCPUFLAGS = -fno-pic -mcmodel=large -fno-stack-protector -mno-red-zone -mrdrnd ARCHPICFLAGS = -fPIC ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef