diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-07-02 09:53:22 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-07-02 10:51:41 +0000 |
commit | 54ff6c13316cc975852c9712d7086de5ff32da6a (patch) | |
tree | f07b259485ff8e37ac858a6b7dc16e595d1711c2 | |
parent | 5a1ae484fa523568dd9c47f08c25ef336c2626fb (diff) | |
download | meta-qt5-54ff6c13316cc975852c9712d7086de5ff32da6a.tar.gz |
qtbase: add PACKAGECONFIG for Link Time Optimization
qtbase configure option -ltcg enables Link Time Code Generation
using GCC's LTO feature. Enable it by default if the selected
optimization is for size.
Task-number: QTBUG-68688
Change-Id: I6ca4997e0d91fb2b967a260694d1ac84c983f256
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index da0b1d4e..001838bc 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
@@ -69,7 +69,7 @@ PACKAGECONFIG_RELEASE ?= "release" | |||
69 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency | 69 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency |
70 | # PACKAGECONFIG_OPENSSL ?= "openssl" | 70 | # PACKAGECONFIG_OPENSSL ?= "openssl" |
71 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests \ | 71 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests \ |
72 | ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size', '', d)} \ | 72 | ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size ltcg', '', d)} \ |
73 | " | 73 | " |
74 | 74 | ||
75 | PACKAGECONFIG ?= " \ | 75 | PACKAGECONFIG ?= " \ |
@@ -88,6 +88,7 @@ PACKAGECONFIG[release] = "-release,-debug" | |||
88 | PACKAGECONFIG[debug] = "" | 88 | PACKAGECONFIG[debug] = "" |
89 | PACKAGECONFIG[developer] = "-developer-build" | 89 | PACKAGECONFIG[developer] = "-developer-build" |
90 | PACKAGECONFIG[optimize-size] = "-optimize-size" | 90 | PACKAGECONFIG[optimize-size] = "-optimize-size" |
91 | PACKAGECONFIG[ltcg] = "-ltcg" | ||
91 | PACKAGECONFIG[sm] = "-sm,-no-sm" | 92 | PACKAGECONFIG[sm] = "-sm,-no-sm" |
92 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" | 93 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" |
93 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" | 94 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" |