diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM32/RT-STM32F407-DISCOVERY-G++/Makefile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/Makefile b/demos/STM32/RT-STM32F407-DISCOVERY-G++/Makefile index 5783d3148..0919dd130 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/Makefile +++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/Makefile @@ -15,7 +15,7 @@ endif # C++ specific options here (added to USE_OPT). ifeq ($(USE_CPPOPT),) - USE_CPPOPT = -std=gnu++11 -fno-rtti + USE_CPPOPT = -std=gnu++11 -fno-exceptions -fno-rtti endif # Enable this if you want the linker to remove unused code and data @@ -159,11 +159,8 @@ MCU = cortex-m4 TRGT = arm-none-eabi- CC = $(TRGT)gcc CPPC = $(TRGT)g++ -# Enable loading with g++ only if you need C++ runtime support. -# NOTE: You can use C++ even without C++ support if you are careful. C++ -# runtime support makes code size explode. -LD = $(TRGT)gcc -#LD = $(TRGT)g++ +#LD = $(TRGT)gcc +LD = $(TRGT)g++ CP = $(TRGT)objcopy AS = $(TRGT)gcc -x assembler-with-cpp AR = $(TRGT)ar |