commit:     a72b03f11e9d003e26607a1c80457bbf574fe3d7
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 19 17:08:48 2016 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 17:08:48 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=a72b03f1

qt5-build.eclass: add -no-ltcg for 5.6 and later

 eclass/qt5-build.eclass | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index fe49b00..d51d27f 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -589,13 +589,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

Reply via email to