xiaoxiang781216 commented on a change in pull request #5553:
URL: https://github.com/apache/incubator-nuttx/pull/5553#discussion_r810642486
##########
File path: boards/arm/stm32/stm32f4discovery/scripts/Make.defs
##########
@@ -34,18 +34,18 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
endif
-ARCHCFLAGS = -fno-builtin
-ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new
+ARCHCFLAGS = -fno-common -fno-builtin
+ARCHCXXFLAGS = -fno-common -fno-builtin -fno-exceptions -fcheck-new
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
- ARCHCFLAGS += -nostdlib -ffreestanding
- ARCHCXXFLAGS += -nostdlib -ffreestanding
+ ARCHCFLAGS += -fno-common -nostdlib -ffreestanding
+ ARCHCXXFLAGS += -fno-common -nostdlib -ffreestanding
else
- ARCHCFLAGS += -funwind-tables
- ARCHCXXFLAGS += -fno-rtti -funwind-tables
+ ARCHCFLAGS += -fno-common -funwind-tables
+ ARCHCXXFLAGS += -fno-common -fno-rtti -funwind-tables
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]