Ask gcc nicely to aggresively remove unwanted functions from output

This commit is contained in:
XANTRONIX Development 2016-06-06 19:58:39 -05:00
parent 319b17c8b2
commit fc19701ec4

View file

@ -7,8 +7,9 @@ HEADER_SUBDIR = tabby
CROSS = avr-
CC = $(CROSS)gcc
CFLAGS = $(CGFLAGS) -Wall -Os -mmcu=atmega2560 -I$(INCLUDE_PATH) \
-DF_CPU=$(CLOCK_SPEED) -DUSE_2X
CFLAGS = $(CGFLAGS) -Wall -Os -mmcu=atmega2560 \
-fdata-sections -ffunction-sections -Wl,--gc-sections \
-I$(INCLUDE_PATH) -DF_CPU=$(CLOCK_SPEED) -DUSE_2X
LDFLAGS =
OBJCOPY = $(CROSS)objcopy