xref: /OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qt5/qtbase/0012-Disable-ltcg-for-host_build.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 5c5461c606b028bf3b31e370a43fba2ce8156b36 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Samuli Piippo <samuli.piippo@qt.io>
3*4882a593SmuzhiyunDate: Tue, 23 Oct 2018 09:54:57 +0300
4*4882a593SmuzhiyunSubject: [PATCH] Disable ltcg for host_build
5*4882a593Smuzhiyun
6*4882a593Smuzhiyundebug-prefix-map does not work correctly for static libraries
7*4882a593Smuzhiyunwhen using ltcg, and since host_build compilations link agaist
8*4882a593Smuzhiyunthe libQt5Bootstrap.a library, it breaks source file packaging
9*4882a593Smuzhiyuninto debug packages.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunTask-number: QTBUG-71230
12*4882a593SmuzhiyunUpstream-Status: Inappropriate [embedded specific]
13*4882a593SmuzhiyunSigned-off-by: Martin Jansa <Martin.Jansa@gmail.com>
14*4882a593Smuzhiyun---
15*4882a593Smuzhiyun mkspecs/features/ltcg.prf | 2 +-
16*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
17*4882a593Smuzhiyun
18*4882a593Smuzhiyundiff --git a/mkspecs/features/ltcg.prf b/mkspecs/features/ltcg.prf
19*4882a593Smuzhiyunindex d81f340edd..dc1d196710 100644
20*4882a593Smuzhiyun--- a/mkspecs/features/ltcg.prf
21*4882a593Smuzhiyun+++ b/mkspecs/features/ltcg.prf
22*4882a593Smuzhiyun@@ -1,6 +1,6 @@
23*4882a593Smuzhiyun static:no-static-ltcg {
24*4882a593Smuzhiyun     # Static library but no-static-ltcg enabled: skip LTCG
25*4882a593Smuzhiyun-} else: CONFIG(release, debug|release) {
26*4882a593Smuzhiyun+} else: CONFIG(release, debug|release):!host_build {
27*4882a593Smuzhiyun     separate_debug_info {
28*4882a593Smuzhiyun         # Evaluate single-$ variable references that have no valid value at mkspec loading time
29*4882a593Smuzhiyun         QMAKE_LFLAGS_LTCG_SEPARATE_DEBUG_INFO ~= s/\\$\\{/\$\$\{/
30