Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
dde0e9ee0a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/Makefile

+ 1
- 1
Marlin/Makefile Parādīt failu

@@ -332,7 +332,7 @@ endif
332 332
 
333 333
 ifeq ($(RELOC_WORKAROUND), 1)
334 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 336
 endif
337 337
 
338 338
 #Check for Arduino 1.0.0 or higher and use the correct source files for that version

Notiek ielāde…
Atcelt
Saglabāt