From 1298bf851a5847413526b915e71f52b356cea44f Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 22 May 2018 13:41:34 +0100 Subject: [PATCH] domoticz: build with -flto This makes quite a significant difference to the executable size: text data bss dec hex filename 7921421 87804 31692 8040917 7ab1d5 domoticz 5862321 86180 31212 5979713 5b3e41 domoticz-lto As an added bonus, it still seems to work. Signed-off-by: David Woodhouse --- utils/domoticz/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/domoticz/Makefile b/utils/domoticz/Makefile index d8dee8139..ba240960d 100644 --- a/utils/domoticz/Makefile +++ b/utils/domoticz/Makefile @@ -62,7 +62,8 @@ CMAKE_OPTIONS += \ -DUSE_STATIC_OPENZWAVE=no \ -DUSE_PYTHON=no -TARGET_CXXFLAGS+=-DWITH_GPIO +TARGET_CFLAGS+=-flto +TARGET_CXXFLAGS+=-DWITH_GPIO -flto define Build/Prepare $(call Build/Prepare/Default)