Ver código fonte

Add missing library in Makefile

When using RELOC_WORKAROUND library needs to be linked explicitly, otherwise
eeprom functions are not available.

Thanks to @rfjakob for finding the crucial hint to solve this issue.
lumbric (antares) 7 anos atrás
pai
commit
dde0e9ee0a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/Makefile

+ 1
- 1
Marlin/Makefile Ver arquivo

332
 
332
 
333
 ifeq ($(RELOC_WORKAROUND), 1)
333
 ifeq ($(RELOC_WORKAROUND), 1)
334
 LD_PREFIX=-nodefaultlibs
334
 LD_PREFIX=-nodefaultlibs
335
-LD_SUFFIX=-lm -lgcc -lc -lgcc
335
+LD_SUFFIX=-lm -lgcc -lc -lgcc -L$(ARDUINO_INSTALL_DIR)/hardware/tools/avr/avr/lib/avr6 -l$(MCU)
336
 endif
336
 endif
337
 
337
 
338
 #Check for Arduino 1.0.0 or higher and use the correct source files for that version
338
 #Check for Arduino 1.0.0 or higher and use the correct source files for that version

Carregando…
Cancelar
Salvar