further reduce binary size: enable inlining and lto

This commit is contained in:
Shawn Hoffman 2018-09-23 11:52:11 -07:00
parent 63184dcc95
commit 5ca172bad9

View file

@ -17,7 +17,7 @@ export RANLIB := $(PREFIX)gcc-ranlib
endif
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb-interwork
CFLAGS = $(ARCH) -Os -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -Wall
CFLAGS = $(ARCH) -Os -flto -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall
LDFLAGS = $(ARCH) -nostartfiles -Wl,--nmagic,--gc-sections
SO_CFLAGS = $(CFLAGS) -fpie -marm