mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
boards: Move -fno-common from Make.defs to Toolchain.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
547c85b0ae
commit
75326e563d
@@ -55,6 +55,9 @@ else
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
ARCHCFLAGS += -fno-common
|
||||
ARCHCXXFLAGS += -fno-common
|
||||
|
||||
# NuttX buildroot under Linux or Cygwin
|
||||
|
||||
ifeq ($(CONFIG_LM32_TOOLCHAIN),BUILDROOT)
|
||||
|
||||
@@ -27,6 +27,9 @@ else
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
ARCHCFLAGS += -fno-common
|
||||
ARCHCXXFLAGS += -fno-common
|
||||
|
||||
# Default toolchain
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
|
||||
Reference in New Issue
Block a user