diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-01-07 21:12:22 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-01-08 07:37:01 +0000 |
commit | 8f1986c8976684e349508f4a8b3eea366c8f10ed (patch) | |
tree | 40ba83ad5fad7a26a547dfa8881b10f69ee2beb4 /meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch | |
parent | bce54374aa6783508fb8bed3a3c547b061384f1a (diff) | |
download | meta-boot2qt-8f1986c8976684e349508f4a8b3eea366c8f10ed.tar.gz |
qtbase: update Disable-ltcg-for-host_build.patch
This patch was accidentally left out when upstream patch changed patch
number and patch names did not match anymore. Reworked patch to be
applied on top of upstream patch instead of replacing it.
Change-Id: I880669132ec7e57d9784964f935f43249de15821
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch')
-rw-r--r-- | meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch b/meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch new file mode 100644 index 0000000..b1a755f --- /dev/null +++ b/meta-boot2qt-distro/recipes-qt/qt5/qtbase/0002-Disable-ltcg-for-host_build.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 4de366eeb48038da4140c3dcb3e96070e7d56429 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Tue, 23 Oct 2018 09:54:57 +0300 | ||
4 | Subject: [PATCH] Disable ltcg for host_build | ||
5 | |||
6 | debug-prefix-map does not work correctly for static libraries | ||
7 | when using ltcg, and since host_build compilations link agaist | ||
8 | the libQt5Bootstrap.a library, it breaks source file packaging | ||
9 | into debug packages. | ||
10 | |||
11 | Also disable ltcg when compiling on Windows host platform, | ||
12 | as GCC7 does not support lto with mingw. | ||
13 | |||
14 | Disable also for static builds since those libraries can be linked | ||
15 | on Windows host, where the lto built binaries won't work. | ||
16 | |||
17 | Task-number: QTBUG-71230 | ||
18 | Change-Id: I5bea76ea03bf1943b0cfaf03d46a4840bd99a28b | ||
19 | Upstream-Status: Inappropriate [embedded specific] | ||
20 | --- | ||
21 | mkspecs/features/ltcg.prf | 2 +- | ||
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
23 | |||
24 | diff --git a/mkspecs/features/ltcg.prf b/mkspecs/features/ltcg.prf | ||
25 | index 482e5b5..de00842 100644 | ||
26 | --- a/mkspecs/features/ltcg.prf | ||
27 | +++ b/mkspecs/features/ltcg.prf | ||
28 | @@ -1,4 +1,4 @@ | ||
29 | -CONFIG(release, debug|release):!host_build { | ||
30 | +CONFIG(release, debug|release):!host_build:!equals(QMAKE_HOST.os, Windows):!staticlib { | ||
31 | # We need fat object files when creating static libraries on some platforms | ||
32 | # so the linker will know to load a particular object from the library | ||
33 | # in the first place. On others, we have special ar and nm to create the symbol | ||