diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-07-05 11:59:57 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-07-15 23:58:45 +0100 |
commit | 3442865360b18b757aee718de585c31e28c457ce (patch) | |
tree | 66613a1b8c4c7768c1c4df7508c465fc97c314e5 /depends | |
parent | ebce66e532914b433df38a0ee5a2aebcecbd7987 (diff) |
build: Use Link Time Optimization for Qt code on Linux
See: https://www.qt.io/blog/2019/01/02/qt-applications-lto
Diffstat (limited to 'depends')
-rw-r--r-- | depends/packages/qt.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index 7e268fe9a5..d46ca9ff9c 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -152,6 +152,9 @@ $(package)_config_opts_linux += -fontconfig $(package)_config_opts_linux += -no-opengl $(package)_config_opts_linux += -no-feature-vulkan $(package)_config_opts_linux += -dbus-runtime +ifneq ($(LTO),) +$(package)_config_opts_linux += -ltcg +endif $(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_i686_linux = -xplatform linux-g++-32 ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx))) |