diff --git a/boards/Makefile.include.cortexm_common b/boards/Makefile.include.cortexm_common index 05c5ca78685faa61a36a51dac80ede57e5fa04a7..d28019785685a969ef19862e8e8e596c1a962a41 100644 --- a/boards/Makefile.include.cortexm_common +++ b/boards/Makefile.include.cortexm_common @@ -11,7 +11,7 @@ include $(RIOTBOARD)/Makefile.include.gnu export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU) export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes -Werror=implicit-function-declaration export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -export CFLAGS_DBG = -ggdb -g3 +export CFLAGS_DBG ?= -ggdb -g3 export CFLAGS_OPT ?= -Os export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_STYLE) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)