diff --git a/optiboot/bootloaders/optiboot/Makefile b/optiboot/bootloaders/optiboot/Makefile index 229138a..888d890 100644 --- a/optiboot/bootloaders/optiboot/Makefile +++ b/optiboot/bootloaders/optiboot/Makefile @@ -126,19 +126,12 @@ OPTIMIZE = -Os -fno-split-wide-types -mrelax DEFS = -# -# platforms support EEPROM and large bootloaders need the eeprom functions that -# are defined in libc, even though we explicity remove it with -nostdlib because -# of the space-savings. -LIBS = -lc - CC = $(GCCROOT)avr-gcc # Override is only needed by avr-lib build system. override CFLAGS = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) -DF_CPU=$(AVR_FREQ) $(DEFS) -override LDFLAGS = $(LDSECTIONS) -Wl,--relax -nostartfiles -nostdlib -#-Wl,--gc-sections +override LDFLAGS = $(LDSECTIONS) -Wl,--relax -nostartfiles OBJCOPY = $(GCCROOT)avr-objcopy OBJDUMP = $(call fixpath,$(GCCROOT)avr-objdump)