From: Jo-Philipp Wich Date: Thu, 26 Jul 2018 07:13:21 +0000 (+0200) Subject: build: compile with -ffunction-sections, -fdata-sections and LTO X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a51413988caaff7001f47c8a62bff11a72ca48bc;p=oweals%2Fiwinfo.git build: compile with -ffunction-sections, -fdata-sections and LTO Signed-off-by: Jo-Philipp Wich --- 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