diff --git a/boards/Makefile.include.cortexm_common b/boards/Makefile.include.cortexm_common index cd6bf0d560..7b3e61f9d4 100644 --- a/boards/Makefile.include.cortexm_common +++ b/boards/Makefile.include.cortexm_common @@ -9,9 +9,9 @@ include $(RIOTBOARD)/Makefile.include.gnu # define build specific options export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU) -export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes +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)