From a51413988caaff7001f47c8a62bff11a72ca48bc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 26 Jul 2018 09:13:21 +0200 Subject: [PATCH] build: compile with -ffunction-sections, -fdata-sections and LTO Signed-off-by: Jo-Philipp Wich --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 715c03e..d4f0f00 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ IWINFO_BACKENDS = $(BACKENDS) -IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude -IWINFO_LDFLAGS = -luci -lubox -lubus +IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -ffunction-sections -fdata-sections -flto -Iinclude +IWINFO_LDFLAGS = -Wl,-gc-sections -flto -luci -lubox -lubus IWINFO_LIB = libiwinfo.so IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared -- 2.25.1