From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-858334-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id BEBFB58973
	for <garchives@archives.gentoo.org>; Tue, 19 Jan 2016 17:09:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3055421C110;
	Tue, 19 Jan 2016 17:09:45 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D900521C110
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2016 17:09:44 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 051773409B7
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2016 17:09:44 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 55A13A2C
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2016 17:09:41 +0000 (UTC)
From: "Davide Pesavento" <pesa@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" <pesa@gentoo.org>
Message-ID: <1453223328.a72b03f11e9d003e26607a1c80457bbf574fe3d7.pesa@gentoo>
Subject: [gentoo-commits] proj/qt:master commit in: eclass/
X-VCS-Repository: proj/qt
X-VCS-Files: eclass/qt5-build.eclass
X-VCS-Directories: eclass/
X-VCS-Committer: pesa
X-VCS-Committer-Name: Davide Pesavento
X-VCS-Revision: a72b03f11e9d003e26607a1c80457bbf574fe3d7
X-VCS-Branch: master
Date: Tue, 19 Jan 2016 17:09:41 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 33613622-19f1-4159-9c22-444478b194a9
X-Archives-Hash: 5e02488516ed028ef87d6eb8bd55aa44

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