mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-03 20:54:37 +02:00
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. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
This commit is contained in:
committed by
Otavio Salvador
parent
7faa5d8f39
commit
c3cc11bc28
@@ -69,7 +69,7 @@ PACKAGECONFIG_RELEASE ?= "release"
|
||||
# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
|
||||
# PACKAGECONFIG_OPENSSL ?= "openssl"
|
||||
PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests \
|
||||
${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size', '', d)} \
|
||||
${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size ltcg', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ?= " \
|
||||
@@ -88,6 +88,7 @@ PACKAGECONFIG[release] = "-release,-debug"
|
||||
PACKAGECONFIG[debug] = ""
|
||||
PACKAGECONFIG[developer] = "-developer-build"
|
||||
PACKAGECONFIG[optimize-size] = "-optimize-size"
|
||||
PACKAGECONFIG[ltcg] = "-ltcg"
|
||||
PACKAGECONFIG[sm] = "-sm,-no-sm"
|
||||
PACKAGECONFIG[tests] = "-make tests,-nomake tests"
|
||||
PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples"
|
||||
|
||||
Reference in New Issue
Block a user