Ask gcc nicely to aggresively remove unwanted functions from output
This commit is contained in:
parent
319b17c8b2
commit
fc19701ec4
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue