Use build flag -flto

This commit is contained in:
d0k3 2016-03-22 19:24:58 +01:00
parent 0d521004a1
commit a9f89d3503

View File

@ -25,9 +25,9 @@ INCLUDES := include source source/fatfs source/nand
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
ARCH := -mthumb -mthumb-interwork ARCH := -mthumb -mthumb-interwork -flto
CFLAGS := -g -Wall -O2\ CFLAGS := -g -Wall -O2 -flto\
-march=armv5te -mtune=arm946e-s -fomit-frame-pointer\ -march=armv5te -mtune=arm946e-s -fomit-frame-pointer\
-ffast-math -std=c99\ -ffast-math -std=c99\
$(ARCH) $(ARCH)