diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2018-05-22 13:41:34 +0100 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2018-06-04 11:11:23 +0100 |
| commit | acb6cf153c42dec12d1684386dabb6ba1d1b7db4 (patch) | |
| tree | 39e41a1751597406c9322b83e575cafbd31c69c4 /utils/domoticz | |
| parent | a4a5fcc245a7e70a25bee4e6525e9523005a208b (diff) | |
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 <dwmw2@infradead.org>
Diffstat (limited to 'utils/domoticz')
| -rw-r--r-- | utils/domoticz/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
