diff --git a/cpu/avr8_common/Makefile.include b/cpu/avr8_common/Makefile.include index c762770d65..ce73116c97 100644 --- a/cpu/avr8_common/Makefile.include +++ b/cpu/avr8_common/Makefile.include @@ -3,4 +3,8 @@ INCLUDES += -I$(RIOTCPU)/avr8_common/include \ -isystem$(RIOTCPU)/avr8_common/avr_libc_extra/include \ -isystem$(RIOTCPU)/avr8_common/avr_libc_extra/include/vendor +ifneq (,$(filter printf_float,$(USEMODULE))) + LINKFLAGS += -Wl,-u,vfprintf -lprintf_flt -lm +endif + include $(RIOTMAKE)/arch/avr8.inc.mk