From cc77d19a45e30941d045ab0f8acd261b93ff4a9e Mon Sep 17 00:00:00 2001 From: Daniele Cattaneo <daniele3.cattaneo@mail.polimi.it> Date: Sat, 27 May 2023 17:16:29 +0200 Subject: [PATCH] cortexM0_stm32f0: Pass OPT_EXCEPT to the C++ compiler and not just to the linker. Signed-off-by: Terraneo Federico <fede.tft@miosix.org> --- miosix/config/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miosix/config/Makefile.inc b/miosix/config/Makefile.inc index da3d7015..ac776575 100644 --- a/miosix/config/Makefile.inc +++ b/miosix/config/Makefile.inc @@ -2562,7 +2562,7 @@ else ifeq ($(ARCH),cortexM0_stm32f0) CFLAGS_BASE += -D_ARCH_CORTEXM0_STM32F0 $(CLOCK_FREQ) -mcpu=cortex-m0 \ -mthumb $(OPT_OPTIMIZATION) -c CXXFLAGS_BASE += -D_ARCH_CORTEXM0_STM32F0 $(CLOCK_FREQ) -mcpu=cortex-m0 \ - -mthumb $(OPT_OPTIMIZATION) -c + $(OPT_EXCEPT) -mthumb $(OPT_OPTIMIZATION) -c LFLAGS_BASE := -mcpu=cortex-m0 -mthumb -Wl,--gc-sections,-Map,main.map \ -Wl,-T$(KPATH)/$(LINKER_SCRIPT) $(OPT_EXCEPT) \ $(OPT_OPTIMIZATION) -nostdlib -- GitLab