summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2016-01-19 18:08:48 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-02-02 19:35:03 +0100
commita0ab6659af2fb224aa1d5957d48e3afa37a42eae (patch)
treed83d07edf127da9b5a77df194bf9f538f282b711 /eclass
parentqt5-build.eclass: stop the eclass from being used accidentally (diff)
downloadgentoo-a0ab6659af2fb224aa1d5957d48e3afa37a42eae.tar.gz
gentoo-a0ab6659af2fb224aa1d5957d48e3afa37a42eae.tar.bz2
gentoo-a0ab6659af2fb224aa1d5957d48e3afa37a42eae.zip
qt5-build.eclass: add -no-ltcg for 5.6 and later
(cherry picked from proj/qt commit a72b03f11e9d003e26607a1c80457bbf574fe3d7)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index db08161cc87d..270ab1302072 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -583,13 +583,15 @@ qt5_base_configure() {
-no-icu -no-fontconfig
-no-dbus
- # don't strip
+ # let portage handle stripping
-no-strip
- # precompiled headers are not that useful for us
- # and cause problems on hardened, so turn them off
+ # precompiled headers can cause problems on hardened, so turn them off
-no-pch
+ # link-time code generation is not something we want to enable by default
+ $([[ ${QT5_MINOR_VERSION} -ge 6 ]] && echo -no-ltcg)
+
# reduced relocations cause major breakage on at least arm and ppc, so
# don't specify anything and let the configure figure out if they are
# supported; see also https://bugreports.qt.io/browse/QTBUG-36129