diff --git a/cpu/kw2x/Makefile b/cpu/kw2x/Makefile index 12ba41f9cf..68605a469b 100644 --- a/cpu/kw2x/Makefile +++ b/cpu/kw2x/Makefile @@ -4,4 +4,7 @@ MODULE = cpu # add a list of subdirectories, that should also be build DIRS = periph $(RIOTCPU)/cortexm_common $(KINETIS_COMMON) +# (file triggers compiler bug. see #5775) +SRC_NOLTO += vectors.c + include $(RIOTBASE)/Makefile.base diff --git a/cpu/kw2x/Makefile.include b/cpu/kw2x/Makefile.include index 9d48993ba5..14bbd8edff 100644 --- a/cpu/kw2x/Makefile.include +++ b/cpu/kw2x/Makefile.include @@ -19,6 +19,6 @@ export CFLAGS += -DCPU_ARCH_$(ARCH) export COMMON_STARTUP = $(KINETIS_COMMON) # add the CPU specific system calls implementations for the linker -export UNDEF += $(BINDIR)cpu/vector.o +export UNDEF += $(BINDIR)cpu/vectors.o include $(RIOTCPU)/Makefile.include.cortexm_common diff --git a/cpu/kw2x/vector.c b/cpu/kw2x/vectors.c similarity index 100% rename from cpu/kw2x/vector.c rename to cpu/kw2x/vectors.c