From 5ca172bad90174db83b13a7a61740292dfb6696f Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 23 Sep 2018 11:52:11 -0700 Subject: [PATCH] further reduce binary size: enable inlining and lto --- rules/dkarm_compat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/dkarm_compat b/rules/dkarm_compat index 1214c16..0478fb8 100644 --- a/rules/dkarm_compat +++ b/rules/dkarm_compat @@ -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