fix for avr-gcc bug for multiple -lms

master
Dario Ernst 15 years ago
parent 7cda9a57c9
commit c6136376b0

@ -3,7 +3,7 @@ CFLAGS += -save-temps
CFLAGS += -std=gnu99 -Wall # implements C99, for <util/atomic.h>
# this removes dead code and does global linker optimization
#CFLAGS += -ffunction-sections -Wl,--gc-sections -Wl,--relax
CFLAGS += -Wall -Os -I. -mmcu=atmega88
CFLAGS += -Wall -Os -I. -mmcu=atmega88 -lm -ffunction-sections -fdata-sections
# further optimization:
#CFLAGS += --param inline-call-cost=2

@ -43,7 +43,7 @@ clean:
# file targets:
firmware.bin: $(OBJECTS)
$(COMPILE) -o firmware.bin $(OBJECTS)
$(COMPILE) -lm -o firmware.bin -lm $(OBJECTS) -lm
firmware.hex: firmware.bin
rm -f firmware.hex firmware.eep.hex

Loading…
Cancel
Save